diff --git a/Gemfile b/Gemfile index f12688f..8a7dd10 100644 --- a/Gemfile +++ b/Gemfile @@ -18,7 +18,7 @@ end gem 'jquery-rails' gem 'pg' gem 'mobylette' -gem 'jquery-mobile', :git => "git://github.com/tscolari/jquery-mobile-rails.git" +gem 'jquery_mobile_rails' gem 'therubyracer-heroku', '0.8.1.pre3' group :test, :development do diff --git a/Gemfile.lock b/Gemfile.lock index 68783fd..0affd59 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,3 @@ -GIT - remote: git://github.com/tscolari/jquery-mobile-rails.git - revision: 88c06e12c9ec446d01ddb97e35a2115e4d4dfe1c - specs: - jquery-mobile (1.0b3.1) - rails (~> 3.1.0) - GEM remote: http://rubygems.org/ specs: @@ -62,6 +55,8 @@ GEM jquery-rails (1.0.14) railties (~> 3.0) thor (~> 0.14) + jquery_mobile_rails (1.0b3) + rails (~> 3.1.0) linecache19 (0.5.12) ruby_core_source (>= 0.1.4) mail (2.3.0) @@ -151,8 +146,8 @@ PLATFORMS DEPENDENCIES coffee-rails (~> 3.1.0) factory_girl_rails - jquery-mobile! jquery-rails + jquery_mobile_rails mobylette pg rails (= 3.1.0) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 30c1bae..458d03b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,4 +2,10 @@ class ApplicationController < ActionController::Base protect_from_forgery respond_to_mobile_requests :skip_xhr_requests => false + private + + def is_mobile_request? + true + end + end