Sha256: 74e530b641285552e2c292e6b3f7e7b28474596a6b4d871016b5f74d007167d4
Contents?: true
Size: 511 Bytes
Versions: 22
Compression:
Stored size: 511 Bytes
Contents
require 'rails/generators/migration' class Spud::Photos::ViewsGenerator < ::Rails::Generators::Base source_root File.expand_path('../../../../../app/views', __FILE__) def install if Spud::Photos.config.galleries_enabled copy_file 'photo_galleries/index.html.erb', 'app/views/photo_galleries/index.html.erb' end copy_file 'photo_albums/index.html.erb', 'app/views/photo_albums/index.html.erb' copy_file 'photo_albums/show.html.erb', 'app/views/photo_albums/show.html.erb' end end
Version data entries
22 entries across 22 versions & 2 rubygems