Sha256: 2ddb15aaef8569df91bd84114171b1038223b8e6688a527edb7c58a31cc7cb1f
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
require 'action_view' module Railsstrap module Rails # @api private module BaseHelper include ActionView::Helpers::TagHelper # for content_tag include ActionView::Context # for capture include ActionView::Helpers::OutputSafetyHelper # for safe_join include ActionView::Helpers::RenderingHelper # for render include ActionView::Helpers::UrlHelper # for link_to private def append_class!(hash, new_class, attribute = :class) existing_class = hash[attribute] hash[attribute] = [existing_class, new_class].compact.join ' ' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railsstrap-4.0.0.beta3 | lib/railsstrap/core_ext/rails/base_helper.rb |
railsstrap-4.0.0.beta2 | lib/railsstrap/core_ext/rails/base_helper.rb |