Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Gaston can parse json too

  • Loading branch information...
commit d3e7d1eea1d20b84ff6a1c01603afdec7adce3c6 1 parent 59e1163
@spk spk authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.md
  2. +1 −1  lib/gaston/generators/templates/_gaston.rb
View
2  README.md
@@ -32,7 +32,7 @@ method, and specify config files with the `files` method. Default `env` is
``` ruby
Gaston.configure do |gaston|
gaston.env = Rails.env
- gaston.files = Dir[Rails.root.join("config/gaston/**/*.yml")]
+ gaston.files = Dir[Rails.root.join("config/gaston/**/*.{yml,json}")]
end
```
View
2  lib/gaston/generators/templates/_gaston.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
Gaston.configure do |gaston|
gaston.env = Rails.env
- gaston.files = Dir[Rails.root.join("config/gaston/**/*.yml")]
+ gaston.files = Dir[Rails.root.join("config/gaston/**/*.{yml,json}")]
end
Please sign in to comment.
Something went wrong with that request. Please try again.