This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DynamicFinderMatch | |
attr_accessor :attribute | |
def initialize(method_sym) | |
if Role.all(:select => 'name').map{|n| n.name.pluralize}.include?(method_sym.to_s) | |
@attribute = method_sym | |
end | |
end | |
def match? | |
@attribute != nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exam Columns (0.7ms) SHOW FIELDS FROM `exams` | |
Subject Load (0.1ms) SELECT * FROM `subjects` WHERE (`subjects`.`id` = 11 AND (`subjects`.`is_deleted` = 0)) | |
ActionView::TemplateError (undefined method `_delete' for #<Exam:0xb6c53be8>) on line #69 of app/views/exam/_exam_marks_form.rhtml: | |
66: <td class="col-1"> | |
67: <div class="label-field-pair2"> | |
68: <div class="text-input-bg2"> | |
69: <%= exam_form.check_box :_delete %> | |
70: </div> | |
71: </div> |