class Bulldozer::ViewsGenerator

Public Instance Methods

create_application_layout() click to toggle source
# File lib/bulldozer/generators/views_generator.rb, line 24
def create_application_layout
  template "bulldozer_layout.html.erb.erb",
    "app/views/layouts/application.html.erb",
    force: true
end
create_partials_directory() click to toggle source
# File lib/bulldozer/generators/views_generator.rb, line 5
def create_partials_directory
  empty_directory "app/views/application"
end
create_shared_css_overrides() click to toggle source
# File lib/bulldozer/generators/views_generator.rb, line 19
def create_shared_css_overrides
  copy_file "_css_overrides.html.erb",
    "app/views/application/_css_overrides.html.erb"
end
create_shared_flashes() click to toggle source
# File lib/bulldozer/generators/views_generator.rb, line 9
def create_shared_flashes
  copy_file "_flashes.html.erb", "app/views/application/_flashes.html.erb"
  copy_file "flashes_helper.rb", "app/helpers/flashes_helper.rb"
end
create_shared_javascripts() click to toggle source
# File lib/bulldozer/generators/views_generator.rb, line 14
def create_shared_javascripts
  copy_file "_javascript.html.erb",
    "app/views/application/_javascript.html.erb"
end