diff --git a/CHANGELOG.md b/CHANGELOG.md index 30ab9cd..78a3f37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## Version 2.1.1 (2024-02-10) + ### Changed * Compatibility with Cocooned 2.1 (#15) @@ -13,7 +15,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), * Update test matrix (#14) Add Ruby 3.3. Drop Ruby 2.6 and Ruby 2.7 - ## Version 2.1.0 (2023-08-29) ### Added diff --git a/Gemfile.lock b/Gemfile.lock index 7120ea6..29233d3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - composite_content (2.1.0) + composite_content (2.1.1) active_model_validations_reflection acts_as_list (>= 1.0.4) cocooned (~> 2.0) diff --git a/lib/composite_content/active_record.rb b/lib/composite_content/active_record.rb index 244f5fe..2ef6c7b 100644 --- a/lib/composite_content/active_record.rb +++ b/lib/composite_content/active_record.rb @@ -34,7 +34,7 @@ def instance_mixin(name) def class_mixin(name) Module.new do - define_method "strong_parameters_for_#{name}" do + define_method :"strong_parameters_for_#{name}" do reflect_on_association(name).class_name.constantize.strong_parameters end end diff --git a/lib/composite_content/version.rb b/lib/composite_content/version.rb index 98ae222..7fc3478 100644 --- a/lib/composite_content/version.rb +++ b/lib/composite_content/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module CompositeContent - VERSION = '2.1.0' + VERSION = '2.1.1' end diff --git a/spec/unit/shared/model_with_composite_content.rb b/spec/unit/shared/model_with_composite_content.rb index cdbd185..c9c6edb 100644 --- a/spec/unit/shared/model_with_composite_content.rb +++ b/spec/unit/shared/model_with_composite_content.rb @@ -14,7 +14,7 @@ describe ".strong_parameters_for_#{association}" do it 'returns slot class strong parameters definition Hash' do - expect(parent.send("strong_parameters_for_#{association}")).to eq(classname.constantize.strong_parameters) + expect(parent.send(:"strong_parameters_for_#{association}")).to eq(classname.constantize.strong_parameters) end end end