spec/dummy/app/controllers/application_controller.rb in enju_leaf-1.1.0.rc2 vs spec/dummy/app/controllers/application_controller.rb in enju_leaf-1.1.0.rc3

- old
+ new

@@ -2,14 +2,10 @@ protect_from_forgery enju_leaf enju_biblio enju_library - private - def mobylette_options - @mobylette_options ||= ApplicationController.send(:mobylette_options).merge( - { - :skip_xhr_requests => false - } - ) + mobylette_config do |config| + config[:skip_xhr_requests] = false + config[:skip_user_agents] = Setting.enju.skip_mobile_agents.map{|a| a.to_sym} end end