lockdown 0.3.10 → 0.3.11
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/History.txt +3 -0
- data/lib/lockdown/system.rb +2 -2
- data/lib/lockdown/version.rb +1 -1
- data/website/index.txt +1 -1
- metadata +1 -1
data/History.txt
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
== 0.3.11 2008-05-01
|
|
2
|
+
* Modified: Lockdown::System controller inspect to use "load" instead of "require".
|
|
3
|
+
|
|
1
4
|
== 0.3.10 2008-05-01
|
|
2
5
|
* Fixed: users_controller management of user_groups was using outdated methods. this applies only to the stubs produced with the generator
|
|
3
6
|
|
data/lib/lockdown/system.rb
CHANGED
|
@@ -217,14 +217,14 @@ module Lockdown
|
|
|
217
217
|
@controller_classes = {}
|
|
218
218
|
|
|
219
219
|
unless const_defined?("Application")
|
|
220
|
-
|
|
220
|
+
load(Lockdown.project_root + "/app/controllers/application.rb")
|
|
221
221
|
end
|
|
222
222
|
|
|
223
223
|
Dir.chdir("#{Lockdown.project_root}/app/controllers") do
|
|
224
224
|
Dir["**/*.rb"].sort.each do |c|
|
|
225
225
|
next if c == "application.rb"
|
|
226
226
|
klass = controller_class_name_from_file(c)
|
|
227
|
-
|
|
227
|
+
load(c) unless qualified_const_defined?(klass)
|
|
228
228
|
@controller_classes[klass] = qualified_const_get(klass)
|
|
229
229
|
end
|
|
230
230
|
end
|
data/lib/lockdown/version.rb
CHANGED
data/website/index.txt
CHANGED
|
@@ -2,7 +2,7 @@ h1. lockdown
|
|
|
2
2
|
|
|
3
3
|
h1. → 'lockdown'
|
|
4
4
|
|
|
5
|
-
h3. Lockdown has not been officially released! This page is a Work-In-Progress.
|
|
5
|
+
h3. Lockdown has not been officially released! This page is a Work-In-Progress.
|
|
6
6
|
|
|
7
7
|
h2. What
|
|
8
8
|
|