Sha256: 5989e785ee290c9624a64bf62e172baf0281b15533f93268ed1fc0feb592a648

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

module Templates
  module ActionController
    extend ActiveSupport::Concern

    included do
      class_attribute :templates_list, :templates_options
    end

    module ClassMethods
      def templates list, options = {}
        self.templates_list = list
        self.templates_options = { :partials => [], :layout => false }.merge(options)
      end
    end
  end
end

class ActionController::Base
  include Templates::ActionController
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
templates-0.2.2 lib/templates/action_controller.rb
templates-0.2.1 lib/templates/action_controller.rb
templates-0.2.0 lib/templates/action_controller.rb
templates-0.1.0 lib/templates/action_controller.rb