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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Links
3
- VERSION = "0.0.3.pre"
3
+ VERSION = "0.0.4.pre"
4
4
  end
5
5
  end
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: 961915976
4
+ hash: 961915988
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
9
+ - 4
10
10
  - pre
11
- version: 0.0.3.pre
11
+ version: 0.0.4.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Roberto Vasquez Angel