Skip to content

skilldrick/include_in_json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

IncludeInJson

IncludeInJson makes it easy to add extra methods to JSON responses in Rails 3.

Example

class Project < ActiveRecord::Base
  include_in_json :margin

  def margin
    profit / value
  end
end

Copyright (c) 2011 Nick Morgan, released under the MIT license

About

Include custom methods in Rails 3 JSON responses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages