Sha256: a16d4d9f8d42418327e818611e8a781c906dfa25e94a441461529fd8640da892

Contents?: true

Size: 300 Bytes

Versions: 6

Compression:

Stored size: 300 Bytes

Contents

module SectionsRails
  require 'action_view'
  require "sections_rails/section"
  require "sections_rails/railtie" #if defined?(Rails)

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

ActionView::Base.send :include, SectionsRails

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sections_rails-0.11.0 lib/sections_rails.rb
sections_rails-0.10.0 lib/sections_rails.rb
sections_rails-0.9.0 lib/sections_rails.rb
sections_rails-0.8.1 lib/sections_rails.rb
sections_rails-0.8.0 lib/sections_rails.rb
sections_rails-0.7.2 lib/sections_rails.rb