Sha256: 796f558fa8c064100faac55b544a81bcf8d00e68001552767a340f8a573fd08b
Contents?: true
Size: 314 Bytes
Versions: 11
Compression:
Stored size: 314 Bytes
Contents
module Cms module DefaultAccessible def self.included(model_class) model_class.attribute_names.each do |name| unless [:id, :type, :created_by_id, :updated_by_id, :created_at, :updated_at].include?(name.to_sym) model_class.attr_accessible name end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems