app/models/applications/application_for_offering.rb
def method_missing(method_name, *args)
    match = method_name.to_s.match(/dynamic_answer_(\d+)(=?)/)
    if match
      match[2] == "=" ? set_answer(match[1], args.first) : get_answer(match[1])
    else
      super
    end
  end
# Handles the +dynamic_answer_:id+ methods for getting and setting dynamic ApplicationAnswer associations.
Handles the +dynamic_answer_:id+ methods for getting and setting dynamic ApplicationAnswer associations.
Handles the + dynamic_answer_ : id + methods for getting and setting dynamic ApplicationAnswer associations .
def method_missing(method_name, *args)
    match = method_name.to_s.match(/dynamic_answer_(\d+)(=?)/)
    if match
      match[2] == "=" ? set_answer(match[1], args.first) : get_answer(match[1])
    else
      super
    end
  end
def method_missing ( method_name , * args ) match = method_name . to_s . match ( / dynamic_answer_( \d +)(=?) / ) if match match [ 2 ] == "=" ? set_answer ( match [ 1 ] , args . first ) : get_answer ( match [ 1 ] ) else super end end
Handles the +dynamic_answer_:id+ methods for getting and setting dynamic ApplicationAnswer associations.
Handles the + dynamic_answer_ : id + methods for getting and setting dynamic ApplicationAnswer associations .
method_name
args