Skip to content

Commit

Permalink
FIXED: Erro inicialização do sistema.
Browse files Browse the repository at this point in the history
 - Atualizada gem 'rails-env';
 - Modificado parâmetros de inicialização;
  • Loading branch information
luizpicolo committed May 10, 2016
1 parent 76dcf06 commit 01bfc79
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ group :development, :test do
gem 'factory_girl_rails'
gem 'faker'
gem 'mina'
gem 'rspec-rails', require: 'rspec/rails'
gem 'rspec-rails'
gem 'selenium-webdriver'
gem 'shoulda-matchers'
gem 'spring'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ GEM
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
carrierwave (0.11.1)
carrierwave (0.11.2)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/active_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Rails.env.on(:any) do |config|
Rails.env.on(:any) do
# config mailer
config.action_mailer.default_url_options = { host: ENV['DOMAIN'] }
config.action_mailer.raise_delivery_errors = true
Expand All @@ -14,7 +14,7 @@
:openssl_verify_mode => 'none'
}
end
Rails.env.on(:development) do |config|
Rails.env.on(:development) do
# Send email in development mode.
config.action_mailer.perform_deliveries = true
end
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
# config.omniauth_path_prefix = '/my_engine/users/auth'
end

Rails.env.on(:any) do |config|
Rails.env.on(:any) do
# Configuration for layouts
config.to_prepare do
Devise::SessionsController.layout false
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/generators.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Rails.env.on(:any) do |config|
Rails.env.on(:any) do
# Disabel Generate assets and helpes
config.generators.assets = false
config.generators.helper = false
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/time_zone.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Rails.env.on(:any) do |config|
Rails.env.on(:any) do
# Configuration default for time zone
config.time_zone = 'Brasilia'
config.i18n.default_locale = :'pt-BR'
Expand Down

0 comments on commit 01bfc79

Please sign in to comment.