ecm_links 0.0.3.pre → 0.0.4.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/ecm/links/category.rb +5 -1
- data/lib/ecm/links/version.rb +1 -1
- metadata +3 -3
@@ -53,8 +53,12 @@ class Ecm::Links::Category < ActiveRecord::Base
|
|
53
53
|
name
|
54
54
|
end
|
55
55
|
|
56
|
+
def self.for_actual_locale
|
57
|
+
where(:locale => I18n.locale)
|
58
|
+
end
|
59
|
+
|
56
60
|
def self.for_link_footer
|
57
|
-
where(self.arel_table['link_footer_column'].not_eq(nil))
|
61
|
+
where(self.arel_table['link_footer_column'].not_eq(nil)).for_actual_locale
|
58
62
|
end
|
59
63
|
|
60
64
|
private
|
data/lib/ecm/links/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_links
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 961915988
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 4
|
10
10
|
- pre
|
11
|
-
version: 0.0.
|
11
|
+
version: 0.0.4.pre
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Roberto Vasquez Angel
|