No more need for debug output

This commit is contained in:
Sean Grove 2011-07-21 18:48:46 -07:00
parent 32f57cc43c
commit 2a9a49f1b1
1 changed files with 0 additions and 7 deletions

View File

@ -6,27 +6,20 @@ module Locomotive
extend ActiveSupport::Concern
included do
puts "Including special bushido admin methods"
alias_method_chain :require_admin, :bushido
end
module InstanceMethods
def require_admin_with_bushido
puts "requiring admin with bushido.."
puts "App claimed?"
if ::Locomotive.bushido_app_claimed?
require_admin_without_bushido
else
puts "not claimed! signing in #{Account.order(:created_at).first.inspect}"
# open back-office for everybody as long as the application is not claimed
sign_in(Account.order_by(:created_at).first)
end
end
end
end
end
end
end