Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Commit

Permalink
Fix locale generator
Browse files Browse the repository at this point in the history
Fixes #95.
  • Loading branch information
volmer committed Oct 2, 2014
1 parent 110bec0 commit 50e5143
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## master

* Fix orange color (#94).
* Fix locale generator (#95).

## 2.0.10

Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions lib/generators/bootsy/install_generator.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module Bootsy
module Generators
class InstallGenerator < Rails::Generators::Base
source_root __FILE__
source_root File.expand_path('../templates', __FILE__)

def add_routes
route("mount Bootsy::Engine => '/bootsy', as: 'bootsy'")
route "mount Bootsy::Engine => '/bootsy', as: 'bootsy'"
end

def copy_locale
copy_file('../../../../config/locales/en.yml', 'config/locales/bootsy.en.yml')
copy_file '../../../../config/locales/bootsy.en.yml', 'config/locales/bootsy.en.yml'
end

def add_assets
Expand Down Expand Up @@ -43,7 +43,7 @@ def add_assets
end

def copy_config
template('../templates/bootsy.rb', 'config/initializers/bootsy.rb')
template 'bootsy.rb', 'config/initializers/bootsy.rb'
end
end
end
Expand Down

0 comments on commit 50e5143

Please sign in to comment.