Skip to content

Commit

Permalink
Now use template for routes.rb in cms generator
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Mar 8, 2018
1 parent 5d1b61b commit 70cd41c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/spec/lib/generators/refinery/cms/cms_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ module Refinery
end

def copy_routes
routes = File.join(Gem.loaded_specs['railties'].full_gem_path, 'lib', 'rails', 'generators', 'rails', 'app', 'templates', 'config', 'routes.rb')
routes = File.join(Gem.loaded_specs['railties'].
full_gem_path, 'lib', 'rails', 'generators', 'rails', 'app', 'templates', 'config', 'routes.rb.tt')
destination = File.join(destination_root, "config")

FileUtils.mkdir_p(destination)
FileUtils.cp routes, destination
FileUtils.cp routes, File.join(destination, "routes.rb")
end

end
end

0 comments on commit 70cd41c

Please sign in to comment.