Sha256: 13d1f26696870b073251e6a05feb294cd6317a6ef9c097259c479171d71b332d

Contents?: true

Size: 445 Bytes

Versions: 13

Compression:

Stored size: 445 Bytes

Contents

# These methods should be extracted into own gem.
module UcbRails::ExtractableHelper
  
  def ucbr_table_tag(*args)
    options = canonicalize_options(args.extract_options!)
    
    ar_class = args.first
    if ar_class.respond_to?(:haml_attributes)
      options[:id] ||= ar_class.haml_attributes["id"]
      options = ensure_class(options, ar_class.haml_attributes["class"])
    end

    bs_table_tag(options) do
      yield
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ucb_rails-0.0.14 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.13 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.12 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.11 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.10 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.9 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.8 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.7 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.6 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.5 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.4 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.3 app/helpers/ucb_rails/extractable_helper.rb
ucb_rails-0.0.2 app/helpers/ucb_rails/extractable_helper.rb