Sha256: 178501d5d5a2db3c75ab539c8b107dc1ebf705ad3bac4deeb510c064550e2737

Contents?: true

Size: 417 Bytes

Versions: 20

Compression:

Stored size: 417 Bytes

Contents

module ActiveRemote
  module Serializers
    module JSON
      # Returns a json representation of the whitelisted publishable attributes.
      #
      def as_json(options = {})
        options ||= {}
        
        default_options = { :only => _publishable_json_attributes, :methods => _publishable_json_methods }
        default_options.merge!(options)

        super(default_options)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
active_remote-2.0.2 lib/active_remote/serializers/json.rb
active_remote-2.0.1 lib/active_remote/serializers/json.rb
active_remote-2.0.0 lib/active_remote/serializers/json.rb
active_remote-2.0.0.rc2 lib/active_remote/serializers/json.rb
active_remote-2.0.0.rc1 lib/active_remote/serializers/json.rb
active_remote-1.8.1 lib/active_remote/serializers/json.rb
active_remote-1.8.0 lib/active_remote/serializers/json.rb
active_remote-1.8.0.rc1 lib/active_remote/serializers/json.rb
active_remote-1.7.1 lib/active_remote/serializers/json.rb
active_remote-1.7.0 lib/active_remote/serializers/json.rb
active_remote-1.6.1 lib/active_remote/serializers/json.rb
active_remote-1.6.0 lib/active_remote/serializers/json.rb
active_remote-1.5.9 lib/active_remote/serializers/json.rb
active_remote-1.5.8 lib/active_remote/serializers/json.rb
active_remote-1.5.7 lib/active_remote/serializers/json.rb
active_remote-1.5.6 lib/active_remote/serializers/json.rb
active_remote-1.5.5 lib/active_remote/serializers/json.rb
active_remote-1.5.4 lib/active_remote/serializers/json.rb
active_remote-1.5.2 lib/active_remote/serializers/json.rb
active_remote-1.5.1 lib/active_remote/serializers/json.rb