Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating hashes style to 1.9

  • Loading branch information...
commit dcaa63be5c386b40b84b7428606c6e798cf56628 1 parent 4065e1d
@tscolari tscolari authored
View
10 lib/mobylette/controllers/respond_to_mobile_requests.rb
@@ -28,21 +28,21 @@ module ClassMethods
# or make it application wide calling it from the ApplicationController
#
# Options:
- # * :fall_back => :html
+ # * fall_back: :html
# You may pass a fall_back option to the method, it will force the render
# to look for that other format, in case there is not a .mobile file for the view.
# By default, it will fall back to the format of the original request.
- # If you don't want fall back at all, pass :fall_back => false
- # * :skip_xhr_requests => true/false
+ # If you don't want fall back at all, pass fall_back: false
+ # * skip_xhr_requests: true/false
# By default this is set to true. When a xhr request enters in, it will skip the
# mobile verification. This will let your ajax calls to work as intended.
# You may disable this (actually you will have to) if you are using JQuery Mobile, or
- # other js framework that uses ajax. To disable, set :skip_xhr_requests => false
+ # other js framework that uses ajax. To disable, set skip_xhr_requests: false
def respond_to_mobile_requests(options = {})
return if self.included_modules.include?(Mobylette::Controllers::RespondToMobileRequestsMethods)
options.reverse_merge!({
- :skip_xhr_requests => true
+ skip_xhr_requests: true
})
cattr_accessor :mobylette_options
View
2  spec/spec_helper.rb
@@ -29,7 +29,7 @@
require 'rspec/expectations'
config.include RSpec::Matchers
- config.include Mobylette::Helmet, :type => :controller
+ config.include Mobylette::Helmet, type: :controller
# == Mock Framework
config.mock_with :rspec
Please sign in to comment.
Something went wrong with that request. Please try again.