Skip to content

Commit

Permalink
no need to to_sym
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Oct 9, 2013
1 parent b64d64a commit 729d3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/inheritance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def find_sti_class(type_name)
end

def type_condition(table = arel_table)
sti_column = table[inheritance_column.to_sym]
sti_column = table[inheritance_column]
sti_names = ([self] + descendants).map { |model| model.sti_name }

sti_column.in(sti_names)
Expand Down

0 comments on commit 729d3c0

Please sign in to comment.