Skip to content

Commit

Permalink
bug: make it work with Rails 6
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Oct 11, 2024
1 parent dff62f6 commit 434885e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/maglev/section/setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Maglev::Section::Setting

## validations ##
validates :id, :label, :type, :default, 'maglev/presence': true
validates :type, inclusion: { in: -> { Maglev::SettingTypeRegistry.types.map(&:to_s) } }
validates :type, inclusion: { in: ->(_setting) { Maglev::SettingTypeRegistry.types.map(&:to_s) } }

## methods ##

Expand Down

0 comments on commit 434885e

Please sign in to comment.