Sha256: fa10d834713d485f7662fe8a279fef6b827779ba47e01d43346254426a664f47

Contents?: true

Size: 270 Bytes

Versions: 1

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.where(:thing_type => @object.class.base_class.to_s, :thing_id => @object.id)
    end
 
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-settings-rails32-0.1.2 lib/rails-settings/scoped_settings.rb