bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

new version 5.3.0 - undefined method `arity' for #702

Closed kivanio closed 9 months ago

kivanio commented 9 months ago

After upgrade to 5.3.0 I start to see this kind of error at CI:

ActionView::Template::Error undefined method `arity' for :fine_by_percentage?:Symbol
\e[1mFailure/Error: \e[0m= f.text_field :fine_percentage

It complains about this if: :fine_by_percentage? in model:

validates :fine_percentage, presence: true, numericality: { greater_than_or_equal_to: 0.01, less_than: 100 }, if: :fine_by_percentage?
donv commented 9 months ago

@kivanio I will take a look.

donv commented 9 months ago

I have found the error. Will fix and release shortly.

donv commented 9 months ago

@kivanio Could you try version 5.3.1 ?

kivanio commented 9 months ago

@donv It is fixed.

Thank you 🙏🏻