Skip to content

Commit

Permalink
Using table_name
Browse files Browse the repository at this point in the history
Instead of name.downcase.pluralize
  • Loading branch information
flbulgarelli committed Sep 11, 2015
1 parent b4ec47a commit d3327ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/with_siblings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def contextualized_name
private

def qualified_position
"#{self.class.name.downcase.pluralize}.position"
"#{self.class.table_name}.position"
end
end

0 comments on commit d3327ff

Please sign in to comment.