Sha256: 0e0c2267e17304fb4bf26fb03090b40833b45240fa8e75bc7227255b4f3896ea

Contents?: true

Size: 337 Bytes

Versions: 9

Compression:

Stored size: 337 Bytes

Contents

module Kuhsaft
  class AccordionBrick < ColumnBrick
    attr_accessible :caption

    # TODO: validate only accept AccordionItem as child

    def user_can_delete?
      true
    end

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

    def allowed_brick_types
      %w(Kuhsaft::AccordionItemBrick)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kuhsaft-1.8.6 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.8.5 app/models/kuhsaft/accordion_brick.rb
kuhsaft-2.0.2 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.8.4 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.8.1 app/models/kuhsaft/accordion_brick.rb
kuhsaft-2.0.1 app/models/kuhsaft/accordion_brick.rb
kuhsaft-2.0.0 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.8.0 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.7.1 app/models/kuhsaft/accordion_brick.rb