Class: SettingCrazy::NamespacedSettingsProxy

Inherits:
SettingsProxy show all
Defined in:
lib/settingcrazy/namespaced_settings_proxy.rb

Instance Attribute Summary

Attributes inherited from SettingsProxy

#template

Instance Method Summary collapse

Methods inherited from SettingsProxy

#[], #[]=, #bulk_assign, #delete, #each, #inspect, #map, #method_missing, #parent_settings, #to_hash

Constructor Details

#initialize(model, namespace) ⇒ NamespacedSettingsProxy

Returns a new instance of NamespacedSettingsProxy.



3
4
5
6
7
# File 'lib/settingcrazy/namespaced_settings_proxy.rb', line 3

def initialize(model, namespace)
  @model      = model
  @namespace  = namespace
  @template   = namespace.template
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SettingCrazy::SettingsProxy