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.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_scaffold_vho}
8
- s.version = "3.0.7"
8
+ s.version = "3.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Many, see README"]
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 7
5
+ PATCH = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -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.active_scaffold_autoload_subdir(dir, mod=self)
30
- Dir["#{File.dirname(__FILE__)}/active_scaffold/#{dir}/*.rb"].each { |file|
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.active_scaffold_autoload_subdir('actions', self)
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.active_scaffold_autoload_subdir('config', self)
47
+ ActiveScaffold.autoload_subdir('config', self)
48
48
  end
49
49
 
50
50
  module DataStructures
51
- ActiveScaffold.active_scaffold_autoload_subdir('data_structures', self)
51
+ ActiveScaffold.autoload_subdir('data_structures', self)
52
52
  end
53
53
 
54
54
  module Helpers
55
- ActiveScaffold.active_scaffold_autoload_subdir('helpers', self)
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: 9
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 7
10
- version: 3.0.7
9
+ - 8
10
+ version: 3.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Many, see README