infopark_reactor 1.9.0.beta → 1.9.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/infopark_reactor.rb +4 -0
- data/lib/reactor/persistence.rb +15 -2
- data/lib/reactor/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b96463ad2562d6b77d097a3704b5abcd1f51439d
|
4
|
+
data.tar.gz: 0ab12aa9b56d9f5e181f19acc58d5fbc12f904f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c4dae0ba20c0c8f321c23257a20379030a50b73c4a613abfdcc13871783a0d2116fd9d0af87dfba873af6bc799b1d0ade407dc9254d18b65f162bb2aa5d7b0
|
7
|
+
data.tar.gz: bd94b0c7b9fdb84c32b559865549e922c7b0e3423246a1d41faae065e59c11b4f7a69d6daa3eef1f3b07a902eefd616b335dbdc4e158efe0481aeaf59d3be20c
|
data/lib/infopark_reactor.rb
CHANGED
@@ -16,6 +16,10 @@ module Reactor
|
|
16
16
|
def self.rails4_0?
|
17
17
|
::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR == 0
|
18
18
|
end
|
19
|
+
|
20
|
+
def self.rails4_0_ge6?
|
21
|
+
::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR == 0 && ::Rails::VERSION::TINY >= 6
|
22
|
+
end
|
19
23
|
end
|
20
24
|
|
21
25
|
# require exceptions
|
data/lib/reactor/persistence.rb
CHANGED
@@ -423,7 +423,11 @@ module Reactor
|
|
423
423
|
end
|
424
424
|
|
425
425
|
if Reactor.rails4_0?
|
426
|
-
|
426
|
+
if Reactor.rails4_0_ge6?
|
427
|
+
alias_method :_create_record, :create
|
428
|
+
else
|
429
|
+
alias_method :create_record, :create
|
430
|
+
end
|
427
431
|
end
|
428
432
|
|
429
433
|
def update
|
@@ -435,7 +439,11 @@ module Reactor
|
|
435
439
|
end
|
436
440
|
|
437
441
|
if Reactor.rails4_0?
|
438
|
-
|
442
|
+
if Reactor.rails4_0_ge6?
|
443
|
+
alias_method :_update_record, :update
|
444
|
+
else
|
445
|
+
alias_method :update_record, :update
|
446
|
+
end
|
439
447
|
end
|
440
448
|
|
441
449
|
def ignore_attributes(attributes)
|
@@ -504,6 +512,11 @@ module Reactor
|
|
504
512
|
end
|
505
513
|
end
|
506
514
|
end
|
515
|
+
|
516
|
+
if Reactor.rails4_0_ge6?
|
517
|
+
alias_method :subclass_from_attributes, :subclass_from_attrs
|
518
|
+
remove_method :subclass_from_attrs
|
519
|
+
end
|
507
520
|
end
|
508
521
|
|
509
522
|
# Convenience method: it is equivalent to following call chain:
|
data/lib/reactor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.0.
|
4
|
+
version: 1.9.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Przedmojski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: 1.3.1
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.0.
|
157
|
+
rubygems_version: 2.0.14
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Write into CM in familiar, Rails-like way
|