Sha256: 052c487803ccb3a37d30e8f993cd048c9ff6247b3adb8e4ddf48705d40de78c8

Contents?: true

Size: 212 Bytes

Versions: 7

Compression:

Stored size: 212 Bytes

Contents

class ScopedSettings < Settings
  def self.for_target(target)
    @target = target
    self
  end
  
  def self.target_id
    @target.id
  end
  
  def self.target_type
    @target.class.base_class.to_s
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ledermann-rails-settings-1.1.0 lib/rails-settings/scoped_settings.rb
jamesearl-rails-settings-1.0.5 lib/rails-settings/scoped_settings.rb
jamesearl-rails-settings-1.0.4 lib/rails-settings/scoped_settings.rb
jamesearl-rails-settings-1.0.3 lib/rails-settings/scoped_settings.rb
jamesearl-rails-settings-1.0.2 lib/rails-settings/scoped_settings.rb
ledermann-rails-settings-1.0.1 lib/rails-settings/scoped_settings.rb
ledermann-rails-settings-1.0.0 lib/rails-settings/scoped_settings.rb