Sha256: 83ac38ffaffea96fbce61317ba5a82d10246cbb254b163aa75da7ab0a4d746cd

Contents?: true

Size: 270 Bytes

Versions: 11

Compression:

Stored size: 270 Bytes

Contents

module Cms
  module DefaultAccessible

    def permitted_params
      attribute_names.map{|string| string.to_sym} - non_permitted_params
    end

    def non_permitted_params
      [:id, :type, :created_by_id, :updated_by_id, :created_at, :updated_at]
    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 lib/cms/default_accessible.rb
browsercms-artirix-4.0.3.3 lib/cms/default_accessible.rb
browsercms-artirix-4.0.3.2 lib/cms/default_accessible.rb
browsercms-artirix-4.0.3.1 lib/cms/default_accessible.rb
browsercms-artirix-4.0.3 lib/cms/default_accessible.rb
browsercms-artirix-4.0.2 lib/cms/default_accessible.rb
browsercms-artirix-4.0.1.1 lib/cms/default_accessible.rb
browsercms-artirix-4.0.0.rc1.art4 lib/cms/default_accessible.rb
browsercms-4.0.0.rc1 lib/cms/default_accessible.rb
browsercms-4.0.0.beta lib/cms/default_accessible.rb
browsercms-4.0.0.alpha lib/cms/default_accessible.rb