Attr Accessor in Rails 4

Is attr_accessor no longer used in RAils 4 since there are strong
parameters? If strong parameters are disabled, then are attr_accessors
necessary?

Are attr_accessors no longer needed in Rails 4 since there are strong
params?
If strong params are disabled, then are attr_accessors necessary?

On Monday, 8 September 2014 16:08:48 UTC-4, Ruby-Forum.com User wrote:

Are attr_accessors no longer needed in Rails 4 since there are strong
params?
If strong params are disabled, then are attr_accessors necessary?

attr_accessor is unrelated to strong parameters - it’s a core Ruby
function:

You may be referring to attr_accessible, which has been removed to the
protected_attributes gem in Rails 4:

–Matt J.