Sha256: dacb2bdb36cc8a798d8245b2e3bac8f804463a25f478ccc50b9d8d85747649cc

Contents?: true

Size: 533 Bytes

Versions: 19

Compression:

Stored size: 533 Bytes

Contents

require "active_support/ordered_options"

module ActiveRemote
  class Config < ::ActiveSupport::OrderedOptions
    def initialize(options = {})
      super

      self.default_cache_key_updated_at = false
      self.include_root_in_json = true
    end

    def default_cache_key_updated_at?
      self[:default_cache_key_updated_at]
    end

    def include_root_in_json=(true_or_false)
      self[:include_root_in_json] = !!true_or_false
      ActiveRemote::Base.include_root_in_json = self[:include_root_in_json]
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
active_remote-7.1.0 lib/active_remote/config.rb
active_remote-6.0.3 lib/active_remote/config.rb
active_remote-6.1.2 lib/active_remote/config.rb
active_remote-7.0.0 lib/active_remote/config.rb
active_remote-6.1.1 lib/active_remote/config.rb
active_remote-6.1.0 lib/active_remote/config.rb
active_remote-6.0.2 lib/active_remote/config.rb
active_remote-6.0.1 lib/active_remote/config.rb
active_remote-6.0.0.beta lib/active_remote/config.rb
active_remote-5.2.0 lib/active_remote/config.rb
active_remote-5.2.0.beta lib/active_remote/config.rb
active_remote-5.2.0.alpha lib/active_remote/config.rb
active_remote-5.0.1 lib/active_remote/config.rb
active_remote-5.1.1 lib/active_remote/config.rb
active_remote-5.1.0 lib/active_remote/config.rb
active_remote-5.0.0 lib/active_remote/config.rb
active_remote-5.1.0.rc1 lib/active_remote/config.rb
active_remote-5.0.0.rc1 lib/active_remote/config.rb
active_remote-5.0.0.pre lib/active_remote/config.rb