Sha256: d120d3d53a346dc271d88d8e4476913607f68d41e0667172c8919da12ab70eb5

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

module Puffer
  module Controller
    module Mutate

      def self.included base
        base.class_eval do
          extend ClassMethods

          layout 'puffer'
          helper :puffer
          helper_method :puffer?

          view_paths_fallbacks :puffer
        end
      end

      def puffer?; true; end

      module ClassMethods

        def view_paths_fallbacks *args
          temp = Puffer::PathSet.new view_paths
          temp._fallbacks = args.flatten
          self.view_paths = temp
        end

        def puffer?; true; end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.0.12 lib/puffer/controller/mutate.rb