Refactor for mobile deployment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user