diff --git a/app/helpers/maglev/application_helper.rb b/app/helpers/maglev/application_helper.rb index 3016fe0..5a39b1d 100644 --- a/app/helpers/maglev/application_helper.rb +++ b/app/helpers/maglev/application_helper.rb @@ -17,7 +17,8 @@ def maglev_live_preview_client_javascript_tag entries = maglev_asset_manifest.resolve_entries(*%w[live-preview-rails-client], type: :javascript) - javascript_include_tag(*entries.fetch(:scripts).flatten.uniq, crossorigin: 'anonymous', type: 'module', defer: true) + javascript_include_tag(*entries.fetch(:scripts).flatten.uniq, crossorigin: 'anonymous', type: 'module', + defer: true) end def maglev_asset_manifest diff --git a/app/models/maglev/site/locales_concern.rb b/app/models/maglev/site/locales_concern.rb index da572a4..6db9f0f 100644 --- a/app/models/maglev/site/locales_concern.rb +++ b/app/models/maglev/site/locales_concern.rb @@ -6,7 +6,7 @@ module Maglev::Site::LocalesConcern included do ## serializers ## - if Rails::VERSION::MAJOR >= 7 && Rails::VERSION::MINOR > 0 + if Rails::VERSION::MAJOR >= 7 && Rails::VERSION::MINOR.positive? serialize :locales, coder: LocalesSerializer else serialize :locales, LocalesSerializer diff --git a/maglevcms.gemspec b/maglevcms.gemspec index 7add13a..f7ad61f 100644 --- a/maglevcms.gemspec +++ b/maglevcms.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |spec| spec.files = Dir[ '.babelrc', - '.eslintrc.js', + '.eslintrc.js', '{app,config,db,lib}/**/*', 'bin/vite', 'package.json',