modern_times 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/modern_times/railsable.rb +4 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -1,7 +1,10 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'erb'
|
3
|
+
|
1
4
|
module ModernTimes
|
2
5
|
module Railsable
|
3
6
|
def init_rails
|
4
|
-
if @cfg = YAML.
|
7
|
+
if @cfg = YAML.load(ERB.new(File.read(File.join(Rails.root, "config", "jms.yml"))).result(binding))[Rails.env]
|
5
8
|
ModernTimes.logger.info "Messaging Enabled"
|
6
9
|
ModernTimes::JMS::Connection.init(@cfg)
|
7
10
|
@is_jms_enabled = true
|