Sha256: 4edb8af91724cf2e08d3c6e363ac0b809a9cb669dfddd48cac74b03ebd5a4df6
Contents?: true
Size: 810 Bytes
Versions: 3
Compression:
Stored size: 810 Bytes
Contents
module SuperTable module ViewHelpers def td(*args, &block) content_tag(:td, *args, &block) end def tr(*args, &block) content_tag(:tr, *args, &block) end def th(*args, &block) content_tag(:th, *args, &block) end def strong(*args, &block) content_tag(:strong, *args, &block) end def div(*args, &block) content_tag(:div, *args, &block) end def small(*args, &block) content_tag(:small, *args, &block) end def span(*args, &block) content_tag(:span, *args, &block) end def self.included(base) base.include ::ActionView::Context base.include ::ActionView::Helpers if Rails.respond_to?(:application) base.include ::Rails.application.routes.url_helpers end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
super_tools-0.0.3 | lib/super_table/view_helpers.rb |
super_tools-0.0.2 | lib/super_table/view_helpers.rb |
super_tools-0.0.1 | lib/super_table/view_helpers.rb |