class Redde::Generators::LayoutGenerator

Attributes

app_name[R]

Public Instance Methods

fix_routes() click to toggle source
# File lib/generators/redde/layout/layout_generator.rb, line 24
def fix_routes
  route("devise_for :managers, controllers: { registrations: 'managers/registrations' }")
end
make_css() click to toggle source
# File lib/generators/redde/layout/layout_generator.rb, line 20
def make_css
  template 'assets/stylesheets/admin.css', 'app/assets/stylesheets/admin.css'
end
make_js() click to toggle source
# File lib/generators/redde/layout/layout_generator.rb, line 16
def make_js
  template 'assets/javascripts/admin.js', 'app/assets/javascripts/admin.js'
end
make_views() click to toggle source
# File lib/generators/redde/layout/layout_generator.rb, line 11
def make_views
  template '../../../../../app/views/admin/redde/_sidebar.html.haml', 'app/views/admin/redde/_sidebar.html.haml'
  template '../../../../../app/views/admin/redde/_main_menu.html.haml', 'app/views/admin/redde/_main_menu.html.haml'
end

Private Instance Methods

ext() click to toggle source
# File lib/generators/redde/layout/layout_generator.rb, line 30
def ext
  '.html.haml'
end