Created
March 1, 2014 14:07
-
-
Save GRGSIBERIA/9290218 to your computer and use it in GitHub Desktop.
SequelでJSONを出力したい時にはさむもの
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SequelでJSON出力ができるようになる | |
| class Sequel::Dataset | |
| def to_json | |
| naked.all.to_json | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment