Skip to content

Commit

Permalink
Fix for Rails 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Jul 24, 2019
1 parent 7f6a34a commit a3080a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ranked-model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def self.included base

rails_version = ActiveRecord.version.to_s
if rails_version < '5.0'
base.module_eval <<-EOS.strip_heredoc, __FILE__, __LINE__ + 1
base.module_eval <<-EOS, __FILE__, __LINE__ + 1
def handle_ranking_return_value(return_value)
@ranked_model_ranking_succeeded
end
Expand Down

0 comments on commit a3080a0

Please sign in to comment.