lib/localeapp/rails/controller.rb in localeapp-0.7.0 vs lib/localeapp/rails/controller.rb in localeapp-0.7.1

- old
+ new

@@ -5,10 +5,10 @@ base.before_filter :handle_translation_updates base.after_filter :send_missing_translations end def handle_translation_updates - raise Localeapp::MissingApiKey unless ::Localeapp.configuration.api_key + raise Localeapp::MissingApiKey unless ::Localeapp.configuration.has_api_key? unless ::Localeapp.configuration.polling_disabled? ::Localeapp.log_with_time 'Handling translation updates' if ::Localeapp.poller.needs_polling? ::Localeapp.log_with_time 'polling' ::Localeapp.poller.poll!