Sha256: 84aae8068420462728a6cf6a62be81289370f0d0d29aa25a6d7e06d9baa0b950
Contents?: true
Size: 881 Bytes
Versions: 11
Compression:
Stored size: 881 Bytes
Contents
module Leather class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../../../../templates/', __FILE__) def mount route "mount Leather::Engine => '/'" end def copy_devise_views directory("views/devise", Rails.root.join("app", "views", "devise")) end def copy_pages directory("views/pages", Rails.root.join("app", "views", "pages")) end def copy_navigation copy_file("_navigation.html.haml", Rails.root.join("app", "views", "application", "_navigation.html.haml")) end def copy_bootstrap_variables copy_file("bootstrap_variables.css.scss", Rails.root.join("app", "assets", "stylesheets", "bootstrap_variables.css.scss")) end def copy_high_voltage_config copy_file("high_voltage.rb", Rails.root.join("config", "initializers", "high_voltage.rb")) end end end
Version data entries
11 entries across 11 versions & 2 rubygems