Method: Cms::Settings::CmsModuleProxy#method_missing

Defined in:
lib/bcms_settings/cms/settings.rb

#method_missing(method_id, *args) ⇒ Object



232
233
234
235
236
237
238
239
240
241
242
243
# File 'lib/bcms_settings/cms/settings.rb', line 232

def method_missing(method_id, *args)
  num_args = args.length
  method_name = method_id.to_s
  if method_name.chomp!("=")
    @cms_module.settings[method_name] = args.first
    @cms_module.save
  elsif num_args == 0
    @cms_module.settings[method_name]
  else
    super(method_id, *args)
  end
end