Sha256: 17e674e9cdb7e4df128fe32b9fa8c95b20d5cf384a285c0551f2e19b9eda1ac4
Contents?: true
Size: 452 Bytes
Versions: 2
Compression:
Stored size: 452 Bytes
Contents
require 'rails/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
responders-0.6.1 | lib/generators/rails/responders_controller_generator.rb |
responders-0.6.0 | lib/generators/rails/responders_controller_generator.rb |