Sha256: c4c3b548b8fed71fc2ce8202430a0ce0ce2cfa743c33c14eca9bc9c16336490b

Contents?: true

Size: 292 Bytes

Versions: 5

Compression:

Stored size: 292 Bytes

Contents

require 'sections_rails/helpers'
require "sections_rails/section"

module SectionsRails
  require "sections_rails/railtie" if defined?(Rails)

  def section name, options = {}
    SectionsRails::Section.new(name, self, options).render
  end
end

ActionView::Base.send :include, SectionsRails

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sections_rails-0.6.6 lib/sections_rails.rb
sections_rails-0.6.5 lib/sections_rails.rb
sections_rails-0.6.4 lib/sections_rails.rb
sections_rails-0.6.3 lib/sections_rails.rb
sections_rails-0.6.2 lib/sections_rails.rb