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

Version Path
browsercms-3.5.7 lib/cms/default_accessible.rb
browsercms-3.5.6 lib/cms/default_accessible.rb
browsercms-3.5.5 lib/cms/default_accessible.rb
browsercms-3.5.4 lib/cms/default_accessible.rb
browsercms-3.5.3 lib/cms/default_accessible.rb
browsercms-3.5.2 lib/cms/default_accessible.rb
browsercms-3.5.1 lib/cms/default_accessible.rb
browsercms-3.5.0 lib/cms/default_accessible.rb
browsercms-3.5.0.rc3 lib/cms/default_accessible.rb
browsercms-3.5.0.rc2 lib/cms/default_accessible.rb
browsercms-3.5.0.rc1 lib/cms/default_accessible.rb