Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
Created March 16, 2011 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterhellberg/872756 to your computer and use it in GitHub Desktop.
Save peterhellberg/872756 to your computer and use it in GitHub Desktop.
module Athega
class LonemodellWithJSON < Lonemodell
def to_json(*args)
Yajl::Encoder.encode(to_hash)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment