-
-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
We have an attribute params in our serializer, which has started breaking after v3 upgrade.
class NotificationSerializer < BaseSerializer
attributes :id
attributes :params # This causes an error in v3
# attribute :params, &:params # This works in v3
endError
/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/alba-3.0.0/lib/alba/resource.rb:268:in `_fetch_attribute_from_resource_first': wrong number of arguments (given 1, expected 0) (ArgumentError)
__send__(attribute, obj)
I am guessing params is also an internal method, so its not a big deal, but I just wanted to flag it here.
Environment
- Ruby version: 3.2.2
- gem 'alba', '3.0.0'
- gem 'rails', '7.0.8'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working