diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index fc1f8dc6..0185b3bf 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -20,6 +20,7 @@ inflect.acronym "API" inflect.acronym "DNS" + inflect.acronym "MySQL" inflect.acronym "DB" inflect.acronym "IP" diff --git a/lib/postal/config.rb b/lib/postal/config.rb index b0c8e2a1..3b9c9e4a 100644 --- a/lib/postal/config.rb +++ b/lib/postal/config.rb @@ -9,6 +9,9 @@ module Postal + class Config + end + def self.host @host ||= config.web.host || "localhost:5000" end diff --git a/lib/postal/version.rb b/lib/postal/version.rb index d701fe55..80d20d09 100644 --- a/lib/postal/version.rb +++ b/lib/postal/version.rb @@ -11,4 +11,6 @@ def self.version VERSION end + Version = VERSION + end