Module: ActiveRemote::Serializers::JSON
- Defined in:
- lib/active_remote/serializers/json.rb
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ Object
Returns a json representation of the whitelisted publishable attributes.
Instance Method Details
#as_json(options = {}) ⇒ Object
Returns a json representation of the whitelisted publishable attributes.
6 7 8 9 10 11 12 13 |
# File 'lib/active_remote/serializers/json.rb', line 6 def as_json( = {}) ||= {} = { :only => _publishable_json_attributes, :methods => _publishable_json_methods } .merge!() super() end |