Class: Spud::Photos::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/spud/photos/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#installObject



6
7
8
9
10
11
12
# File 'lib/generators/spud/photos/views_generator.rb', line 6

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