Sha256: 18dc2ebf59d978d1eb85b500b1f186996583058649b2c7f8689bdb0292eb33e5
Contents?: true
Size: 475 Bytes
Versions: 20
Compression:
Stored size: 475 Bytes
Contents
class WheelsControllerGenerator < Rails::Generators::NamedBase include Rails::Generators::Migration source_root File.expand_path('../../../../', __FILE__) desc "Installs a copy of the named controller into the app/controllers folder." def install_file if class_name == "All" directory "app/controllers", "app/controllers" else file "app/controllers/#{plural_name}_controller.rb", "app/controllers/#{plural_name}_controller.rb" end end end
Version data entries
20 entries across 20 versions & 1 rubygems