RS, IZ; adding set backer number to routes, not authenticating it
This commit is contained in:
parent
23c57c653f
commit
7e377fc292
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
class DevUtilitiesController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
before_filter :authenticate_user!, :except => [:set_backer_number]
|
||||
include ApplicationHelper
|
||||
include RequestsHelper
|
||||
def warzombie
|
||||
|
|
@ -48,7 +48,7 @@ def warzombie
|
|||
config['servers']['backer']
|
||||
end
|
||||
|
||||
def set_backer_seed_number
|
||||
def set_backer_number
|
||||
render :nothing => true
|
||||
seed_num_hash = {:seed_number => params[:number]}
|
||||
file = File.new(Rails.root.join('config','backer_number.yml'),'w')
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ Diaspora::Application.routes.draw do |map|
|
|||
match 'warzombie', :to => "dev_utilities#warzombie"
|
||||
match 'zombiefriends', :to => "dev_utilities#zombiefriends"
|
||||
match 'zombiefriendaccept', :to => "dev_utilities#zombiefriendaccept"
|
||||
match 'set_backer_number', :to => "dev_utilities#set_backer_number"
|
||||
|
||||
#routes for devise, not really sure you will need to mess with this in the future, lets put default,
|
||||
#non mutable stuff in anohter file
|
||||
|
|
|
|||
Loading…
Reference in a new issue