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)



44
45
46
47
48
49
50
# File 'app/models/qwester/questionnaire.rb', line 44

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