Sha256: 88a12a0f5f24d5b820b92e79303692426c28a66bf5ff13c30866e1c14397f19f

Contents?: true

Size: 278 Bytes

Versions: 3

Compression:

Stored size: 278 Bytes

Contents

module TaoPopover
  class Component < TaoOnRails::Components::Base

    def initialize view, options = {}
      super

      if @options[:class].present?
        @options[:class] += ' tao-popover'
      else
        @options[:class] = 'tao-popover'
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tao_popover-0.3.7 lib/tao_popover/component.rb
tao_popover-0.3.6 lib/tao_popover/component.rb
tao_popover-0.3.5 lib/tao_popover/component.rb