Sha256: d5060b31e71cadec15526c47949c9ca3d91236c837dc1c986bd0c84c75bcc849
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
module Bootstrap module ViewHelpers module CardHelper def bs_card(title_or_options = nil, options = {}, &block) options = title_or_options if block && title_or_options.is_a?(Hash) options[:title] = title_or_options if title_or_options.is_a?(String) Components::Card.new(self, options || {}, &block).to_html end def bs_card_header(title_or_options = nil, options = {}, &block) options = title_or_options if block && title_or_options.is_a?(Hash) options[:title] = title_or_options if title_or_options.is_a?(String) Components::Card.new(self, options || {}, &block).header end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-view_helpers-0.0.3 | app/helpers/bootstrap/view_helpers/card_helper.rb |
bootstrap-view_helpers-0.0.2 | app/helpers/bootstrap/view_helpers/card_helper.rb |