Module: Happy::Controller::Configurable::ClassMethods

Defined in:
lib/happy/controller/configurable.rb

Instance Method Summary collapse

Instance Method Details

#set(k, v) ⇒ Object

Change a default setting on this controller class.



27
28
29
# File 'lib/happy/controller/configurable.rb', line 27

def set(k, v)
  settings[k.to_sym] = v
end

#settingsObject

Return a hash containing this controller class’ default settings.



21
22
23
# File 'lib/happy/controller/configurable.rb', line 21

def settings
  @settings ||= {}
end