diff --git a/config/initializers/key.rb b/config/initializers/key.rb index 5f43875..89022ee 100644 --- a/config/initializers/key.rb +++ b/config/initializers/key.rb @@ -1,5 +1,5 @@ if Rails.env.production? # Specify env variable/location/etc. to retrieve key from -elsif Rails.env.development? +else KEY = "123456789101112123456789101112123456789101112" -end \ No newline at end of file +end diff --git a/lib/encryption.rb b/lib/encryption.rb index defa525..a409e37 100644 --- a/lib/encryption.rb +++ b/lib/encryption.rb @@ -1,3 +1,5 @@ +require './config/initializers/key' + module Encryption # Added a re-usable encryption routine, shouldn't be an issue!