earth 0.0.34 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/earth/industry/sector.rb +0 -13
- metadata +5 -5
@@ -4,19 +4,6 @@ class Sector < ActiveRecord::Base
|
|
4
4
|
|
5
5
|
has_many :product_lines_sectors, :class_name => 'ProductLinesSectors', :foreign_key => 'io_code'
|
6
6
|
|
7
|
-
class << self
|
8
|
-
def key_map
|
9
|
-
@key_map ||= sector_map.values.sort
|
10
|
-
end
|
11
|
-
|
12
|
-
def sector_map
|
13
|
-
@sector_map ||= Sector.all.inject({}) do |map, sector|
|
14
|
-
map[sector.description] = sector.io_code
|
15
|
-
map
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
7
|
def self.schema_definition
|
21
8
|
lambda do
|
22
9
|
string 'io_code'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 89
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 35
|
10
|
+
version: 0.0.35
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Seamus Abshere
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-09-
|
20
|
+
date: 2010-09-08 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
31
|
+
hash: -1848230024
|
32
32
|
segments:
|
33
33
|
- 3
|
34
34
|
- 0
|