Skip to content

Commit

Permalink
compatible with ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mnelson committed Apr 9, 2015
1 parent c2cef6b commit d681890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/louisville/extensions/history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def self.included(base)

def historical_slugs
return ::Louisville::Slug.where('1=0') unless persisted?
::Louisville::Slug.where(sluggable_id: id, sluggable_type: ::Louisville::Util.polymorphic_name(self.class))
::Louisville::Slug.where(:sluggable_id => id, :sluggable_type => ::Louisville::Util.polymorphic_name(self.class))
end


Expand Down

0 comments on commit d681890

Please sign in to comment.