infopark_rails_connector_meta 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/app/models/rails_connector/channel.rb +12 -2
- data/lib/meta/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: 991207e52ca8fcbd9f8f961ba04d3ccb2960aabc
|
4
|
+
data.tar.gz: 125c3cc2313d5f6a4eeca15d4b3f965455b95ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1de497eab3005a87129ff7f1c7527c2f5e27b1bf4926acf763ca8e5543400eeed4ed5757d57506c841a824bb28c5c7071d7cec78b36072d780a40b01dfbb6a3
|
7
|
+
data.tar.gz: 9c05ec31bf3303fd155fea3b37339f319997d30e711a925478dc39e9c97e569d827829ad6b33bccd1a6b4df9a1c115a37bc5da1134fb86c8ff70edbc96501076
|
@@ -10,8 +10,18 @@ module RailsConnector
|
|
10
10
|
|
11
11
|
has_many :news, :class_name => 'News', :foreign_key => 'channel_name'
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
if ::Rails::VERSION::MAJOR == 4
|
14
|
+
|
15
|
+
has_many :active_news,
|
16
|
+
lambda { where(['valid_from <= :now AND valid_until >= :now', {:now => Time.now.to_s(:number)}]) },
|
17
|
+
:class_name => 'News', :foreign_key => 'channel_name'
|
18
|
+
|
19
|
+
elsif ::Rails::VERSION::MAJOR == 3
|
20
|
+
|
21
|
+
has_many :active_news, :class_name => 'News', :foreign_key => 'channel_name',
|
22
|
+
:conditions => ['valid_from <= :now AND valid_until >= :now', {:now => Time.now.to_s(:number)}]
|
23
|
+
|
24
|
+
end
|
15
25
|
|
16
26
|
has_many :objects, :through => :news
|
17
27
|
|
data/lib/meta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_rails_connector_meta
|
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: rspec
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: 1.3.1
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.0.
|
115
|
+
rubygems_version: 2.0.14
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Meta Information on CMS Objects
|