From 0105c30a36a4da7ab7bce24bec01b780a40b446e Mon Sep 17 00:00:00 2001 From: benji Date: Sat, 4 Apr 2015 01:47:02 +0200 Subject: [PATCH] secrets --- app/models/webhook.rb | 4 ++-- config/application.rb | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/models/webhook.rb b/app/models/webhook.rb index f3e8ef9..1a12153 100644 --- a/app/models/webhook.rb +++ b/app/models/webhook.rb @@ -12,8 +12,8 @@ class Webhook } self.hook = Tarumi::Bot.new( - Tab002::ZEUS_TEAM, - Tab002::ZEUS_TOKEN, + "zeuswpi", + Rails.application.secrets.zeus_token options ) end diff --git a/config/application.rb b/config/application.rb index fd2ed60..c237028 100644 --- a/config/application.rb +++ b/config/application.rb @@ -7,9 +7,6 @@ require 'rails/all' Bundler.require(*Rails.groups) module Tab002 - ZEUS_TEAM = 'zeuswpi' - ZEUS_TOKEN = Rails.application.secrets.zeus_token - class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers