jammit 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/jammit.gemspec +1 -1
- data/lib/jammit/controller.rb +5 -1
- data/lib/jammit.rb +2 -3
- metadata +1 -1
data/jammit.gemspec
CHANGED
data/lib/jammit/controller.rb
CHANGED
@@ -84,4 +84,8 @@ end
|
|
84
84
|
|
85
85
|
::JammitController = Jammit::Controller
|
86
86
|
|
87
|
-
|
87
|
+
if RAILS_ENV == 'development'
|
88
|
+
ActionController::Base.class_eval do
|
89
|
+
append_before_filter { Jammit.reload! }
|
90
|
+
end
|
91
|
+
end
|
data/lib/jammit.rb
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path(File.dirname(__FILE__))
|
|
4
4
|
# to all of the configuration options.
|
5
5
|
module Jammit
|
6
6
|
|
7
|
-
VERSION = "0.1.
|
7
|
+
VERSION = "0.1.3"
|
8
8
|
|
9
9
|
ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
|
10
10
|
|
@@ -43,8 +43,7 @@ module Jammit
|
|
43
43
|
end
|
44
44
|
|
45
45
|
# Force a reload by resetting the Packager and reloading the configuration.
|
46
|
-
# In development, this will be called before every request
|
47
|
-
# @Jammit::Controller@.
|
46
|
+
# In development, this will be called as a before_filter before every request.
|
48
47
|
def self.reload!
|
49
48
|
Thread.current[:jammit_packager] = nil
|
50
49
|
load_configuration(@config_path)
|