Method: Brief::Model::ClassMethods#method_missing
- Defined in:
- lib/brief/model.rb
#method_missing(meth, *args, &block) ⇒ Object
239 240 241 242 243 244 245 246 247 248 249 250 |
# File 'lib/brief/model.rb', line 239 def method_missing(meth, *args, &block) if %w(meta content template example actions helpers).include?(meth.to_s) definition.send(meth, *args, &block) finalize elsif %w(defined_helper_methods defined_actions).include?(meth.to_s) definition.send(meth) elsif meth.to_s.match(/^on_(.*)_change$/) create_change_handler(Regexp.last_match[1], *args, &block) else super end end |