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 20, 2013
1 parent fcde171 commit 61788cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/searchlight/adapters/active_record.rb
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 61788cc

Please sign in to comment.