From 0c66a0a9e3add4fe92388efa3f096f10c3a6eed7 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Wed, 24 Dec 2014 12:37:17 +0100 Subject: [PATCH] ios Fixes --- app/assets/javascripts/user/app/store.js.coffee | 2 ++ app/controllers/users/application_controller.rb | 2 +- config/version | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/user/app/store.js.coffee b/app/assets/javascripts/user/app/store.js.coffee index 8d2cf55f..76dbd68d 100644 --- a/app/assets/javascripts/user/app/store.js.coffee +++ b/app/assets/javascripts/user/app/store.js.coffee @@ -36,3 +36,5 @@ App.ApplicationStore = DS.Store.extend adapter: DS.ActiveModelAdapter.extend host: $data_host namespace: 'user' + headers: + "Accept": "application/json, text/javascript; q=0.01" diff --git a/app/controllers/users/application_controller.rb b/app/controllers/users/application_controller.rb index 7660dd54..7ddd4d31 100644 --- a/app/controllers/users/application_controller.rb +++ b/app/controllers/users/application_controller.rb @@ -1,7 +1,7 @@ module Users class ApplicationController < ::ApplicationController before_action :allow_all_origins - before_action :user_authentication, :unless => ->(c){ %w(obtain_token).include?(c.action_name) || c.request.format.symbol == :html } # , except: [:obtain_token, :index] + before_action :user_authentication, :unless => ->(c){ %w(obtain_token).include?(c.action_name) } # , except: [:obtain_token, :index] private diff --git a/config/version b/config/version index 37d8b0b7..9a542234 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -0.9.24 +0.9.27