Readonly Associations and Upgrading to Rails 4
Briefly

After upgrading your application from Rails 3 to Rails 4, you might start seeing the following deprecation warning if you are using the readonly option in an association.DEPRECATION WARNING: The following options in your Company.has_many:users declaration are deprecated: :readonly.Please use a scope block instead `
In this article, Senior Software Engineer Ashwini Sukale discusses in detail what the readonly option is and how to handle the deprecation warning.
Read at Rubyflow
[
add
]
[
|
|
]