myreplicator 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,40 +1,44 @@
1
1
  module Myreplicator
2
2
  class Engine < ::Rails::Engine
3
- isolate_namespace Myreplicator
3
+ # isolate_namespace Myreplicator
4
4
 
5
5
  if ::Rails::Engine.method(:isolate_namespace)
6
6
  isolate_namespace Myreplicator
7
7
  else
8
+ puts "Defined"
8
9
  def isolate_namespace(mod)
9
10
  engine_name(ActiveSupport::Inflector.underscore(mod).gsub("/", "_"))
10
11
 
11
- self.routes.default_scope = { :module => ActiveSupport::Inflector.underscore(mod.name) }
12
- self.isolated = true
13
-
14
- unless mod.respond_to?(:railtie_namespace)
15
- name, railtie = engine_name, self
12
+ self.routes.default_scope = { :module => ActiveSupport::Inflector.underscore(mod.name) }
13
+ self.isolated = true
16
14
 
17
- mod.singleton_class.instance_eval do
18
- define_method(:railtie_namespace) { railtie }
19
-
20
- unless mod.respond_to?(:table_name_prefix)
21
- define_method(:table_name_prefix) { "#{name}_" }
22
- end
23
-
24
- unless mod.respond_to?(:use_relative_model_naming?)
25
- class_eval "def use_relative_model_naming?; true; end", __FILE__, __LINE__
26
- end
15
+ unless mod.respond_to?(:railtie_namespace)
16
+ name, railtie = engine_name, self
27
17
 
28
- unless mod.respond_to?(:railtie_helpers_paths)
29
- define_method(:railtie_helpers_paths) { railtie.helpers_paths }
30
- end
31
-
32
- unless mod.respond_to?(:railtie_routes_url_helpers)
33
- define_method(:railtie_routes_url_helpers) { railtie.routes_url_helpers }
18
+ mod.singleton_class.instance_eval do
19
+ define_method(:railtie_namespace) { railtie }
20
+
21
+ unless mod.respond_to?(:table_name_prefix)
22
+ define_method(:table_name_prefix) { "#{name}_" }
23
+ end
24
+
25
+ unless mod.respond_to?(:use_relative_model_naming?)
26
+ class_eval "def use_relative_model_naming?; true; end", __FILE__, __LINE__
27
+ end
28
+
29
+ unless mod.respond_to?(:railtie_helpers_paths)
30
+ define_method(:railtie_helpers_paths) { railtie.helpers_paths }
31
+ end
32
+
33
+ unless mod.respond_to?(:railtie_routes_url_helpers)
34
+ define_method(:railtie_routes_url_helpers) { railtie.routes_url_helpers }
35
+ end
34
36
  end
35
37
  end
36
38
  end
39
+
40
+ isolate_namespace Myreplicator
37
41
  end
38
- end
42
+
39
43
  end
40
44
  end
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
4
+ version: 0.0.5
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: -2311247084557886670
311
+ hash: -1792816068089932604
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: -2311247084557886670
320
+ hash: -1792816068089932604
321
321
  requirements: []
322
322
  rubyforge_project:
323
323
  rubygems_version: 1.8.23