Skip to content
Browse files

catch standard errors, which helps when doing precompile on heroku, a…

…s db is not available, and this method tries to connect to the db as part of environment load.
  • Loading branch information...
1 parent 24a2e30 commit 72e7efa4433d9dd04794584518ad47bacc30a77a @kookster kookster committed Dec 21, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/texticle.rb
3 lib/texticle.rb
@@ -52,7 +52,8 @@ def method_missing(method, *search_terms)
def respond_to?(method, include_private = false)
return super if self == ActiveRecord::Base
Helper.dynamic_search_method?(method, self.columns) or super
- rescue ActiveRecord::StatementInvalid
+ rescue StandardError=>err
+"Texticle::respond_to? error:#{}: #{err.message}")

0 comments on commit 72e7efa

Please sign in to comment.
Something went wrong with that request. Please try again.