Sha256: 794a2dcd2bf72b2b52036d792a7693efa1e1d1d837601440a20a152afd788412

Contents?: true

Size: 379 Bytes

Versions: 24

Compression:

Stored size: 379 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

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
kuhsaft-1.7.0 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.6.0 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.5.0 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.4.3 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.4.2 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.4.1 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.4.0 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.3.1 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.15 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.14 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.13 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.12 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.11 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.10 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.9 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.8 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.7 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.6 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.5 app/models/kuhsaft/accordion_brick.rb
kuhsaft-1.2.4 app/models/kuhsaft/accordion_brick.rb