Sha256: 14c4883a6d5473dde5419d59eafca65153e65b2e3d27c4a5c24b5900ab44c33c

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 Bytes

Contents

class LayoutsExtension < TrustyCms::Extension
  version YAML::load_file(File.join(File.dirname(__FILE__), 'VERSION'))
  description "A set of useful extensions to standard Layouts."
  url "http://github.com/squaretalent/trusty-share-layouts-extension"
  
  def activate
    # Shared Layouts
    RailsPage
    ActionController::Base.send :include, ShareLayouts::Controllers::ActionController
    ActionView::Base.send :include, ShareLayouts::Helpers::ActionView
    
    # Nested Layouts
    Page.send   :include, NestedLayouts::Tags::Core
    
    # HAML Layouts
    Layout.send  :include, HamlLayouts::Models::Layout
    Page.send    :include, HamlLayouts::Models::Page
    HamlFilter
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trusty-layouts-extension-1.0.1 layouts_extension.rb
trusty-layouts-extension-1.0.0 layouts_extension.rb