Replies: 1 comment
-
That's because |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can do this using
attributes
->attributes :slug, if: ->(record) { record.countable? }
...but when I do this using
attribute
->attribute :slug, if: ->(record) { record.countable? }
I get the following error -
raise ArgumentError, 'No block given in attribute method' unless block
Beta Was this translation helpful? Give feedback.
All reactions