Class: Prefered::Preference

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
PreferenceEngine
Defined in:
lib/prefered/preference.rb

Instance Method Summary collapse

Methods included from PreferenceEngine

#deserialize_preferences, #serialize_preferences

Instance Method Details

#init_preferencesObject



94
95
96
97
98
# File 'lib/prefered/preference.rb', line 94

def init_preferences
  settings = interpret_settings(&@preference_settings_block) # hack, see prefered.rb
  init_methods(settings)
  deserialize_data(settings)
end