Sha256: a6b36bb02d8a0a3bd3d2596f257256a2704f72a302cb00431fc56772b595e97c
Contents?: true
Size: 411 Bytes
Versions: 20
Compression:
Stored size: 411 Bytes
Contents
class WheelsViewGenerator < Rails::Generators::NamedBase include Rails::Generators::Migration source_root File.expand_path('../../../../', __FILE__) desc "Installs a copy of the named view into the app/views folder." def install_files if class_name == "All" directory "app/views", "app/views" else directory "app/views/#{plural_name}", "app/views/#{plural_name}" end end end
Version data entries
20 entries across 20 versions & 1 rubygems