Class: Qwester::Questionnaire

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/qwester/questionnaire.rb

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args, &block) ⇒ Object (private)



53
54
55
56
57
58
59
# File 'app/models/qwester/questionnaire.rb', line 53

def method_missing(symbol, *args, &block)
  if symbol.to_sym == :position || acts_as_list_method?(symbol)
    pass_acts_as_list_method_to_questionnaires_question(symbol, args.first) 
  else 
    super
  end
end