Module: Vimpack::Utils::Api
- Included in:
- Models::ApiBase
- Defined in:
- lib/vimpack/utils/api.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/vimpack/utils/api.rb', line 5 def self.included(base) base.send(:extend, ClassMethods) unless Vimpack.env?('production') require 'vcr' VCR.config do |c| c.cassette_library_dir = Vimpack.root.join('cassette_library') c.stub_with :webmock c.ignore_localhost = true c. = { :record => :new_episodes } end end end |