Sha256: 0ecea424c9d384cf467a320b7fc1645a6b825ee46645ce23834ae6d9ca21fd3d

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

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

    # TODO: validate only accept AccordionItem as child

    def user_can_delete?
      true
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuhsaft-1.1.1 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.1.0 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.0.3 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.0.2 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.0.1 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.0.0 app/models/kuhsaft/accordion_brick.rb