Sha256: 5c5e8540e3cefac0b16dfeea5361b47b1ab3fda9650c3423b344ffc51000e432
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
module RailsPages module Generators class ControllerGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_controller template 'controller.rb', File.join('app/controllers', "#{ARGV[0].pluralize}_controller.rb") end hook_for :test_framework, :as => :controller end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_pages-0.0.2 | lib/generators/rails_pages/controller/controller_generator.rb |
rails_pages-0.0.1 | lib/generators/rails_pages/controller/controller_generator.rb |