Refactor for mobile deployment

This commit is contained in:
2014-08-19 12:44:15 +02:00
parent 268c5aabb9
commit 0e46633c73
27 changed files with 848 additions and 41 deletions
+1 -7
View File
@@ -1,16 +1,10 @@
class UserController < Users::ApplicationController
before_filter :allow_mobile
before_action :allow_all_origins
layout 'user/foundation'
#layout 'phone'
alias :list :active_list
def allow_mobile
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Request-Method'] = '*'
headers['Access-Control-Allow-Headers'] = '*'
end
def index
handle_message_params
end