Sha256: ae8384522a9cbce3660cba8d48dcb4df5de06fd0859cf69eaf18f2ed0715f848

Contents?: true

Size: 409 Bytes

Versions: 15

Compression:

Stored size: 409 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

15 entries across 15 versions & 1 rubygems

Version Path
active_remote-2.4.0 lib/active_remote/serializers/json.rb
active_remote-2.3.5 lib/active_remote/serializers/json.rb
active_remote-2.3.4 lib/active_remote/serializers/json.rb
active_remote-2.3.3 lib/active_remote/serializers/json.rb
active_remote-2.3.3.pre lib/active_remote/serializers/json.rb
active_remote-2.3.2 lib/active_remote/serializers/json.rb
active_remote-2.3.1 lib/active_remote/serializers/json.rb
active_remote-2.3.0 lib/active_remote/serializers/json.rb
active_remote-2.2.0 lib/active_remote/serializers/json.rb
active_remote-2.1.1 lib/active_remote/serializers/json.rb
active_remote-2.1.0 lib/active_remote/serializers/json.rb
active_remote-2.1.0.rc2 lib/active_remote/serializers/json.rb
active_remote-2.1.0.rc1 lib/active_remote/serializers/json.rb
active_remote-2.1.0.beta2 lib/active_remote/serializers/json.rb
active_remote-2.1.0.beta1 lib/active_remote/serializers/json.rb