uninitialized constant ApplicationController::Settler in Production environment
maceto opened this issue · 1 comments
maceto commented
I don't know way on production environment the gem is not initialized correctly.
Gems
Rails 3.0.12
Settler 1.2.3
Error:
Completed 500 Internal Server Error in 207ms
ActionView::Template::Error (uninitialized constant ApplicationController::Settler):
79: .text-newsletter
80: Seguinos en:
81: .social-links
82: = link_to image_tag("facebook.png"), "http://www.facebook.com/#{facebook_user}"
83: .social-links
84: = link_to image_tag("twitter.png"), "http://www.twitter.com/#{twitter_user}"
85:
app/controllers/application_controller.rb:51:in `facebook_user'
app/views/layouts/application.html.haml:82:in `_app_views_layouts_application_html_haml___672982_70267324214000_0'
Application controller.
helper_method :twitter_user, :facebook_user
def twitter_user
@twitter_user ||= Settler.twitter_user.value
end
def facebook_user
@facebook_user ||= Settler.facebook_user.value
end
moiristo commented
Never encountered this issue before and we use it in production in several projects. Does the problem disappear when you explicitly require settler on initialization?