Sha256: 4b46347a666df776bfa8717cf716f8a5ffa19908ac5bd4d113d530020556f1be

Contents?: true

Size: 367 Bytes

Versions: 39

Compression:

Stored size: 367 Bytes

Contents

module Kuhsaft
  class AccordionItemBrick < ColumnBrick
    attr_accessible :caption
    validates :caption, :presence => true

    def user_can_delete?
      true
    end

    def to_style_class
      [super, 'accordion-group'].join(' ')
    end

    def user_can_save?
      true
    end

    def collect_fulltext
      [super, caption].join(' ')
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
kuhsaft-1.8.6 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.8.5 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-2.0.2 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.8.4 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.8.1 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-2.0.1 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-2.0.0 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.8.0 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.7.1 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.7.0 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.6.0 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.5.0 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.4.3 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.4.2 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.4.1 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.4.0 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.3.1 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.2.15 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.2.14 app/models/kuhsaft/accordion_item_brick.rb
kuhsaft-1.2.13 app/models/kuhsaft/accordion_item_brick.rb