module RailsProperties

Constants

VERSION

Public Class Methods

can_protect_attributes?() click to toggle source

In Rails 3, attributes can be protected by `attr_accessible` and `attr_protected` In Rails 4, attributes can be protected by using the gem `protected_attributes` In Rails 5, protecting attributes is obsolete (there are `StrongParameters` only)

# File lib/rails-properties.rb, line 5
def self.can_protect_attributes?
  (ActiveRecord::VERSION::MAJOR == 3) || defined?(ProtectedAttributes)
end