active_scaffold_vho 3.0.7 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/active_scaffold_vho.gemspec +1 -1
- data/lib/active_scaffold/version.rb +1 -1
- data/lib/active_scaffold.rb +6 -6
- metadata +3 -3
data/active_scaffold_vho.gemspec
CHANGED
data/lib/active_scaffold.rb
CHANGED
@@ -26,8 +26,8 @@ module ActiveScaffold
|
|
26
26
|
autoload :Finder, 'active_scaffold/finder'
|
27
27
|
autoload :MarkedModel, 'active_scaffold/marked_model'
|
28
28
|
|
29
|
-
def self.
|
30
|
-
Dir["#{
|
29
|
+
def self.autoload_subdir(dir, mod=self, root = File.dirname(__FILE__))
|
30
|
+
Dir["#{root}/active_scaffold/#{dir}/*.rb"].each { |file|
|
31
31
|
basename = File.basename(file, ".rb")
|
32
32
|
mod.module_eval {
|
33
33
|
autoload basename.camelcase.to_sym, "active_scaffold/#{dir}/#{basename}"
|
@@ -36,7 +36,7 @@ module ActiveScaffold
|
|
36
36
|
end
|
37
37
|
|
38
38
|
module Actions
|
39
|
-
ActiveScaffold.
|
39
|
+
ActiveScaffold.autoload_subdir('actions', self)
|
40
40
|
end
|
41
41
|
|
42
42
|
module Bridges
|
@@ -44,15 +44,15 @@ module ActiveScaffold
|
|
44
44
|
end
|
45
45
|
|
46
46
|
module Config
|
47
|
-
ActiveScaffold.
|
47
|
+
ActiveScaffold.autoload_subdir('config', self)
|
48
48
|
end
|
49
49
|
|
50
50
|
module DataStructures
|
51
|
-
ActiveScaffold.
|
51
|
+
ActiveScaffold.autoload_subdir('data_structures', self)
|
52
52
|
end
|
53
53
|
|
54
54
|
module Helpers
|
55
|
-
ActiveScaffold.
|
55
|
+
ActiveScaffold.autoload_subdir('helpers', self)
|
56
56
|
end
|
57
57
|
|
58
58
|
class ControllerNotFound < RuntimeError; end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 8
|
10
|
+
version: 3.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Many, see README
|