Sha256: 77aa7f00daf9b9681e94721f735f87c3201ddb5613e4f48d9a4e12994494363b

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

module RailsSettings
  class ScopedSettings < Settings
    def self.for_thing(object)
      @object = object
      self
    end
    
    def self.thing_scoped
      Settings.scoped_by_thing_type_and_thing_id(@object.class.base_class.to_s, @object.id)
    end
 
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rails-settings-cached-0.2.4 lib/rails-settings/scoped_settings.rb
rails-settings-cached-0.2.3 lib/rails-settings/scoped_settings.rb
rails-settings-cached-0.2.2 lib/rails-settings/scoped_settings.rb
rails-settings-cached-0.2.1 lib/rails-settings/scoped_settings.rb
rails-settings-cached-0.2.0 lib/rails-settings/scoped_settings.rb
rails-3-settings-0.1.1 lib/rails-settings/scoped_settings.rb
rails-settings-cached-0.1.2 lib/rails-settings/scoped_settings.rb