Skip to content

decorate_attribute_type is removed in Rails 7 - #382

Merged
nashby merged 1 commit into
brainspec:masterfrom
f-mer:railsmaster
Jul 14, 2021
Merged

nashby merged 1 commit into
brainspec:masterfrom
f-mer:railsmaster

Conversation

@f-mer

@f-mer f-mer commented Jul 14, 2021

Copy link
Copy Markdown
Contributor

In rails/rails#39929 decorate_attribute_type was removed. Now the attribute method can also be used to decorate attributes. This PR uses attribute instead of decorate_attribute_type if the Rails version is >= 7.0.0.alpha. I've also added the Rails main branch to the test setup and left monogoid out of the Gemfile. As of now it does not seem to be compatible with Rails 7.

@nashby
nashby merged commit 50c3f1d into brainspec:master Jul 14, 2021
@nashby

nashby commented Jul 14, 2021

Copy link
Copy Markdown
Member

@f-mer thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants