Top Level Namespace
Defined Under Namespace
Modules: ActiveRecord, NoQueryingViews
Constant Summary collapse
- NoQueryingViewError =
Class.new(Exception)
Instance Method Summary collapse
Instance Method Details
#safe_require(path) ⇒ Object
1 2 3 4 5 6 7 |
# File 'lib/no_querying_views.rb', line 1 def safe_require(path) begin require path rescue Gem::LoadError => e puts "Not loading #{path}: #{e.message}" end end |