Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only use attr_accessible if it's supported #346

Merged
merged 1 commit into from
Apr 20, 2013

Conversation

cwoodcox
Copy link
Contributor

Rails 4 doesn't define the ActiveModel::MassAssignmentSecurity constant, but
there is a gem that allows it to be used. The models will now only try to use
the functionality if the constant is defined

fixes #334

Rails 4 doesn't define the ActiveModel::MassAssignmentSecurity constant,
but there is a gem that allows it to be used. The models will now only
try to use the functionality if the constant is defined
@tilsammans
Copy link
Contributor

I like this a lot.

@cwoodcox
Copy link
Contributor Author

The only other thing is that the gemspec in the repo says it only supports rails 3. Can we tag the current version as 2.4 and make master 3.0 so I can source it in the Gemfile of my Rails 4 project?

@tilsammans
Copy link
Contributor

With a fix this simple I don't think I even want to wait for 3.0 but just release it as-is.

Then for 3.0 I can drop Ruby 1.8 support.

I want to do a few more tests but this will definitely be merged this weekend.

@cwoodcox
Copy link
Contributor Author

Sounds good. I'll wait until then. 😄 Thanks!

@tilsammans
Copy link
Contributor

Nice one. Still a few deprecation notices though, but it looks like we can fix them backwards compatible too.

I will set up rails 4 branch on Travis CI and we're now fully supporting Rails 4! Thank you very much for your contribution, sir!

tilsammans added a commit that referenced this pull request Apr 20, 2013
only use attr_accessible if it's supported
@tilsammans tilsammans merged commit 5e72269 into mbleigh:master Apr 20, 2013
tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request Mar 19, 2021
only use attr_accessible if it's supported
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.

Rails 4 compatibility
2 participants