Skip to content

Commit

Permalink
Clearer UndefinedColumn error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Long authored and nathanl committed Jun 19, 2013
1 parent 63ef568 commit 52c5d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/searchlight/adapters/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def search_#{attribute_name}
<<-MERMAID_TEARS
def search_#{attribute_name}
raise Searchlight::Adapters::ActiveRecord::UndefinedColumn,
"Class `#{model_class}` has no column `#{attribute_name}`; please define `search_#{attribute_name}` on `\#{self}` to clarify what you intend to search for"
"Class `#{model_class}` has no column `#{attribute_name}`; please define `search_#{attribute_name}` on `\#{self.class}` to clarify what you intend to search for"
end
MERMAID_TEARS
end
Expand Down

0 comments on commit 52c5d82

Please sign in to comment.