Permalink
Browse files

Fix for an obscure load bug that appears when controllers are subclassed

  • Loading branch information...
1 parent 8572dd1 commit fabdf7b2e73c076692900cd0942aaffd0d622b31 @kyledrake kyledrake committed Jun 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sinatra-r18n/lib/sinatra/r18n.rb
@@ -31,7 +31,7 @@ def self.registered(app)
::R18n.default_places { File.join(app.root, 'i18n/') }
app.before do
- ::R18n.clear_cache! if development?
+ ::R18n.clear_cache! if self.class.development?
::R18n.set do
if settings.default_locale

0 comments on commit fabdf7b

Please sign in to comment.