Module: JSONTranslate::Translates::InstanceMethods

Defined in:
lib/json_translate/translates/instance_methods.rb

Instance Method Summary collapse

Instance Method Details

#disable_fallbackObject



4
5
6
7
# File 'lib/json_translate/translates/instance_methods.rb', line 4

def disable_fallback
  toggle_fallback(false)
  yield if block_given?
end

#enable_fallbackObject



9
10
11
12
# File 'lib/json_translate/translates/instance_methods.rb', line 9

def enable_fallback
  toggle_fallback(true)
  yield if block_given?
end