replace class_eval by define_method in abstract_controller/callbacks

since http://tenderlovemaking.com/2013/03/03/dynamic_method_definitions.html