10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/generators/ember_seo/install_generator.rb', line 10
def generate
copy_file "../templates/static_controller.rb", "app/controllers/static_controller.rb"
copy_file "../templates/hashbang.js", "app/models/hashbang.js"
copy_file "../templates/static_constraint.rb", "lib/constraints/static_constraint.rb"
inject_into_file 'config/routes.rb', after: "routes.draw do\n" do
"\n get '/', to: 'static#show', constraints: Constraint::Static.new" +
"\n get '*path', to: 'static#show', constraints: Constraint::Static.new\n"
end
end
|