Sha256: 9209101ad79e82a00e70886d3a701efe8a51cca4e976a87af921c4d80644c546

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

module ActiveRemote
  module Serializers
    module JSON
      # Returns a json representation of the whitelisted publishable attributes.
      #
      def as_json(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

1 entries across 1 versions & 1 rubygems

Version Path
active_remote-1.5.0 lib/active_remote/serializers/json.rb