Sha256: 2e5ebc15103c4a7fb5a23f6daaeac9489356d342ee807544ab0be9d4530888ff

Contents?: true

Size: 284 Bytes

Versions: 4

Compression:

Stored size: 284 Bytes

Contents

module SectionsRails
  require 'action_view'
  require "sections_rails/section"
  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

4 entries across 4 versions & 1 rubygems

Version Path
sections_rails-0.6.12 lib/sections_rails.rb
sections_rails-0.6.11 lib/sections_rails.rb
sections_rails-0.6.10 lib/sections_rails.rb
sections_rails-0.6.9 lib/sections_rails.rb