Skip to content

Commit

Permalink
upgrade to active_record 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ltello committed Apr 18, 2018
1 parent e35e72f commit 4e14711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/logga/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def log_model_deletion
end

def log_model_changes
field_changes = changes.reject do |k, _|
field_changes = previous_changes.reject do |k, _|
excluded_fields.include?(k.to_sym) ||
EXCLUDED_KEYS.include?(k.to_sym) ||
EXCLUDED_KEYS_SUFFIXES.any? { |suffix| k.to_s.end_with?(suffix.to_s) }
Expand Down
4 changes: 2 additions & 2 deletions logga.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "byebug", "~> 5.0"
spec.add_development_dependency "simplecov"

spec.add_runtime_dependency "activerecord", "~> 5.0"
spec.add_runtime_dependency "activesupport", "~> 5.0"
spec.add_runtime_dependency "activerecord", "~> 5.2"
spec.add_runtime_dependency "activesupport", "~> 5.2"
end

0 comments on commit 4e14711

Please sign in to comment.