class ActiveRecord::Base attr_accessible attr_accessor :accessible private def mass_assignment_authorizer if accessible == :all self.class._protected_attributes else super+ (accessible || []) end end end