myreplicator 0.0.10 → 0.0.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/lib/myreplicator/engine.rb +34 -33
- data/lib/myreplicator/version.rb +1 -1
- data/test/dummy/log/development.log +1 -0
- metadata +3 -3
data/lib/myreplicator/engine.rb
CHANGED
@@ -1,48 +1,49 @@
|
|
1
1
|
module Myreplicator
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
# isolate_namespace Myreplicator
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
# metaclass = class << self; self; end
|
5
|
+
# class << self
|
6
|
+
# define_method(:isolate_namespace) do |mod|
|
7
|
+
# puts "NOT Defined"
|
8
|
+
# engine_name(ActiveSupport::Inflector.underscore(mod).gsub("/", "_"))
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
# self.routes.default_scope = { :module => ActiveSupport::Inflector.underscore(mod.name) }
|
11
|
+
# self.isolated = true
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
# unless mod.respond_to?(:railtie_namespace)
|
14
|
+
# name, railtie = engine_name, self
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
# mod.singleton_class.instance_eval do
|
17
|
+
# define_method(:railtie_namespace) { railtie }
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
# unless mod.respond_to?(:table_name_prefix)
|
20
|
+
# define_method(:table_name_prefix) { "#{name}_" }
|
21
|
+
# end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
# unless mod.respond_to?(:use_relative_model_naming?)
|
24
|
+
# class_eval "def use_relative_model_naming?; true; end", __FILE__, __LINE__
|
25
|
+
# end
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
# unless mod.respond_to?(:railtie_helpers_paths)
|
28
|
+
# define_method(:railtie_helpers_paths) { railtie.helpers_paths }
|
29
|
+
# end
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
31
|
+
# unless mod.respond_to?(:railtie_routes_url_helpers)
|
32
|
+
# define_method(:railtie_routes_url_helpers) { railtie.routes_url_helpers }
|
33
|
+
# end
|
34
|
+
# end
|
35
|
+
# end
|
36
|
+
# end unless method_defined? :isolate_namespace
|
37
|
+
# end
|
38
|
+
# # if Rails::Engine.method_defined?(:isolate_namespace)
|
39
|
+
# # puts "Defined"
|
40
|
+
# # isolate_namespace Myreplicator
|
41
|
+
# # else
|
42
42
|
|
43
|
-
|
43
|
+
# # end
|
44
44
|
|
45
|
-
|
45
|
+
# isolate_namespace Myreplicator
|
46
|
+
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
data/lib/myreplicator/version.rb
CHANGED
@@ -4322,3 +4322,4 @@ Started GET "/assets/myreplicator/cross.png" for 127.0.0.1 at 2012-11-30 16:14:4
|
|
4322
4322
|
Served asset /myreplicator/cross.png - 304 Not Modified (2ms)
|
4323
4323
|
Connecting to database specified by database.yml
|
4324
4324
|
Connecting to database specified by database.yml
|
4325
|
+
Connecting to database specified by database.yml
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myreplicator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -308,7 +308,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
308
308
|
version: '0'
|
309
309
|
segments:
|
310
310
|
- 0
|
311
|
-
hash:
|
311
|
+
hash: 1853571065861257590
|
312
312
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
313
313
|
none: false
|
314
314
|
requirements:
|
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
317
|
version: '0'
|
318
318
|
segments:
|
319
319
|
- 0
|
320
|
-
hash:
|
320
|
+
hash: 1853571065861257590
|
321
321
|
requirements: []
|
322
322
|
rubyforge_project:
|
323
323
|
rubygems_version: 1.8.23
|