Sha256: a3fed92a2163a25f8de7150edae378098a07c71a2eb73af6150f8fb7e8cf0192

Contents?: true

Size: 322 Bytes

Versions: 189

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

189 entries across 189 versions & 1 rubygems

Version Path
cm-admin-4.4.8 lib/cm_admin/models/blocks.rb
cm-admin-4.4.6 lib/cm_admin/models/blocks.rb
cm-admin-4.4.1 lib/cm_admin/models/blocks.rb
cm-admin-4.4.0 lib/cm_admin/models/blocks.rb
cm-admin-4.3.0 lib/cm_admin/models/blocks.rb
cm-admin-4.2.1 lib/cm_admin/models/blocks.rb
cm-admin-4.2.0 lib/cm_admin/models/blocks.rb
cm-admin-4.1.2 lib/cm_admin/models/blocks.rb
cm-admin-4.1.1 lib/cm_admin/models/blocks.rb
cm-admin-4.1.0 lib/cm_admin/models/blocks.rb
cm-admin-4.0.0 lib/cm_admin/models/blocks.rb
cm-admin-3.0.16 lib/cm_admin/models/blocks.rb
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