Sha256: 0d070ad7a2a7a4b93497fbe37f34a44018ea2c11a294a4407de4cdbd8b1915fb

Contents?: true

Size: 431 Bytes

Versions: 30

Compression:

Stored size: 431 Bytes

Contents

# These methods should be extracted into own gem.
module UcbRailsUserHelper

  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

30 entries across 30 versions & 1 rubygems

Version Path
ucb_rails_user-7.0.0 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-6.2.2 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-6.2.0 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-6.1.1 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-6.1.0 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-6.0.0 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-5.0.0 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.1.2 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.1.1 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.1.0 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.7 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.6 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.5 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.4 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.3 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.2 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.1 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.0 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-3.0.2 app/helpers/ucb_rails_user_helper.rb
ucb_rails_user-4.0.0.beta1 app/helpers/ucb_rails_user_helper.rb