Skip to content

Commit

Permalink
Merge pull request #100 from trailblazer/boehme/remove-forwardable
Browse files Browse the repository at this point in the history
Remove Forwardable and release 0.2.5
  • Loading branch information
richardboehme committed May 15, 2023
2 parents 454a241 + 271574c commit 478d59c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.2.5

* Fix: Delegating from form object causes ArgumentError with 0.2.4 (https://github.com/trailblazer/reform-rails/issues/99)

# 0.2.4

* Fix keyword argument warning in `method_missing` (https://github.com/trailblazer/reform-rails/pull/97)
Expand Down
3 changes: 1 addition & 2 deletions lib/reform/form/active_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ def self.included(base)
extend ClassMethods
register_feature ActiveModel

extend Forwardable
def_delegators :model, :persisted?, :to_key, :to_param, :id
delegate :persisted?, :to_key, :to_param, :id, to: :model

def to_model # this is called somewhere in FormBuilder and ActionController.
self
Expand Down
2 changes: 1 addition & 1 deletion lib/reform/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Reform
module Rails
VERSION = "0.2.4"
VERSION = "0.2.5"
end
end

0 comments on commit 478d59c

Please sign in to comment.