Skip to content

Commit

Permalink
Merge pull request #101 from gocardless/joesouthan-fixups
Browse files Browse the repository at this point in the history
Fixup ActiveRecord check and update changelog
  • Loading branch information
JoeSouthan authored Aug 21, 2024
2 parents c49e0e1 + c7c09d9 commit a03499a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 4.0.0 / 2024-08-21

- Remove support for Ruby =< 3.0 and Rails =< 6.0
- Remove support for Ruby =< 3.0 and Rails < 7.0
- Add support for ActiveRecord 7.2 (#98)

# 3.0.0 / 2020-09-28

Expand Down
2 changes: 1 addition & 1 deletion lib/active_record/safer_migrations/postgresql_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_setting(setting_name)
end

def fill_sql_values(sql, values)
if Rails.version >= '7.2.0'
if ActiveRecord.version >= "7.2.0"
ActiveRecord::Base.send(:replace_named_bind_variables, self, sql, values)
else
ActiveRecord::Base.send(:replace_named_bind_variables, sql, values)
Expand Down

0 comments on commit a03499a

Please sign in to comment.