Skip to content

Commit

Permalink
Remove data store accessor from ingredient base class
Browse files Browse the repository at this point in the history
This was necessary before we started to use Rails' data store feature in
AlchemyCMS#2171

This currently leads to weird bugs around active record dirty falsy thinking
the attribute set is not dirty, leading
to the data store not being saved.
  • Loading branch information
tvdeyen committed Aug 27, 2021
1 parent 71b4286 commit 253cb70
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/models/alchemy/ingredient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ def preview_text(maxlength = 30)
value.to_s[0..maxlength - 1]
end

# Cross DB adapter data accessor that works
def data
@_data ||= (self[:data] || {}).with_indifferent_access
end

# The path to the view partial of the ingredient
# @return [String]
def to_partial_path
Expand Down

0 comments on commit 253cb70

Please sign in to comment.