Skip to content

Commit

Permalink
Fix ActiveModel::MissingAttributeError on edge Rails commit 7834363bb…
Browse files Browse the repository at this point in the history
…fdb68d734143063932ccc5a8814c97f
  • Loading branch information
geetfun committed Jun 5, 2020
1 parent 8b333b7 commit a89ea00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ source "https://rubygems.org"
# Specify your gem's dependencies in lockbox.gemspec
gemspec

gem "rails", "~> 6.0.0"
# gem "rails", "~> 6.0.0"
gem 'rails', github: 'rails/rails', ref: '7834363bbfdb68d734143063932ccc5a8814c97f'
2 changes: 1 addition & 1 deletion lib/lockbox/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def reload
# cache
# decrypt method does type casting
if respond_to?(:write_attribute_without_type_cast, true)
write_attribute_without_type_cast(name, message) if !@attributes.frozen?
write_attribute_without_type_cast(name.to_s, message) if !@attributes.frozen?
else
raw_write_attribute(name, message) if !@attributes.frozen?
end
Expand Down

0 comments on commit a89ea00

Please sign in to comment.