Sha256: 8d60af30cb0981dab7edf59ed39bc6c773c7e64795a172b8039bdd94afdad843

Contents?: true

Size: 446 Bytes

Versions: 6

Compression:

Stored size: 446 Bytes

Contents

require 'generators/rails/scaffold_controller/scaffold_controller_generator'

module Rails
  module Generators
    class RespondersControllerGenerator < ScaffoldControllerGenerator
      def self.source_root
        @_source_root ||= File.expand_path("templates", File.dirname(__FILE__))
      end

    protected

      def flash?
        !ApplicationController.responder.ancestors.include?(Responders::FlashResponder)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
responders-0.5.5 lib/generators/rails/responders_controller_generator.rb
responders-0.5.4 lib/generators/rails/responders_controller_generator.rb
responders-0.5.3 lib/generators/rails/responders_controller_generator.rb
responders-0.5.2 lib/generators/rails/responders_controller_generator.rb
responders-0.5.1 lib/generators/rails/responders_controller_generator.rb
responders-0.5.0 lib/generators/rails/responders_controller_generator.rb