Sha256: d29ec036585dde01d2627f443f3f6587d9d6df5e122446f916be7b4a944fdb58

Contents?: true

Size: 774 Bytes

Versions: 13

Compression:

Stored size: 774 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 del(*args, &block)
      content_tag(:del, *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
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
super_tools-3.0.1 lib/super_table/view_helpers.rb
super_tools-2.1.0 lib/super_table/view_helpers.rb
super_tools-0.0.26 lib/super_table/view_helpers.rb
super_tools-0.0.25 lib/super_table/view_helpers.rb
super_tools-0.0.21 lib/super_table/view_helpers.rb
super_tools-0.0.20 lib/super_table/view_helpers.rb
super_tools-0.0.17 lib/super_table/view_helpers.rb
super_tools-0.0.15 lib/super_table/view_helpers.rb
super_tools-0.0.14 lib/super_table/view_helpers.rb
super_tools-0.0.13 lib/super_table/view_helpers.rb
super_tools-0.0.12 lib/super_table/view_helpers.rb
super_tools-0.0.11 lib/super_table/view_helpers.rb
super_tools-0.0.10 lib/super_table/view_helpers.rb