Sha256: a3fed92a2163a25f8de7150edae378098a07c71a2eb73af6150f8fb7e8cf0192

Contents?: true

Size: 322 Bytes

Versions: 177

Compression:

Stored size: 322 Bytes

Contents

module CmAdmin
  module Models
    module Blocks
      extend ActiveSupport::Concern

      included do
        attr_accessor :menu, :title
      end

      def set_menu(state)
        self.menu = state.to_s == 'on' ? true : false
      end

      def set_title(name)
        self.title = name
      end
    end
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
cm-admin-3.0.15 lib/cm_admin/models/blocks.rb
cm-admin-3.0.14 lib/cm_admin/models/blocks.rb
cm-admin-3.0.13 lib/cm_admin/models/blocks.rb
cm-admin-3.0.12 lib/cm_admin/models/blocks.rb
cm-admin-3.0.11 lib/cm_admin/models/blocks.rb
cm-admin-3.0.10 lib/cm_admin/models/blocks.rb
cm-admin-3.0.9 lib/cm_admin/models/blocks.rb
cm-admin-3.0.8 lib/cm_admin/models/blocks.rb
cm-admin-3.0.7 lib/cm_admin/models/blocks.rb
cm-admin-3.0.6 lib/cm_admin/models/blocks.rb
cm-admin-3.0.5 lib/cm_admin/models/blocks.rb
cm-admin-3.0.4 lib/cm_admin/models/blocks.rb
cm-admin-3.0.3 lib/cm_admin/models/blocks.rb
cm-admin-3.0.2 lib/cm_admin/models/blocks.rb
cm-admin-3.0.1 lib/cm_admin/models/blocks.rb
cm-admin-3.0.0 lib/cm_admin/models/blocks.rb
cm-admin-2.4.6 lib/cm_admin/models/blocks.rb
cm-admin-2.4.5 lib/cm_admin/models/blocks.rb
cm-admin-2.4.4 lib/cm_admin/models/blocks.rb
cm-admin-2.4.3 lib/cm_admin/models/blocks.rb