Module: SettingCrazy
- Defined in:
- lib/settingcrazy.rb,
lib/settingcrazy/version.rb,
lib/settingcrazy/inheritor.rb,
lib/settingcrazy/namespace.rb,
lib/settingcrazy/class_methods.rb,
lib/settingcrazy/setting_value.rb,
lib/settingcrazy/template/base.rb,
lib/settingcrazy/template/enum.rb,
lib/settingcrazy/settings_proxy.rb,
lib/settingcrazy/instance_methods.rb,
lib/settingcrazy/namespaced_settings_proxy.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods, Template Classes: Inheritor, Namespace, NamespacedSettingsProxy, SettingValue, SettingsProxy
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/settingcrazy.rb', line 15 def self.included(base) base.class_eval <<-EVAL has_many :setting_values, :class_name => "SettingCrazy::SettingValue", :as => :settable, :autosave => true validates_with SettingsValidator EVAL base.extend ClassMethods base.send(:include, InstanceMethods) end |