akm-selectable_attr 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 3
3
- :patch: 1
3
+ :patch: 3
4
4
  :major: 0
@@ -126,7 +126,8 @@ module SelectableAttr
126
126
  return nil if !self.connected?
127
127
  end
128
128
  end
129
- (self.columns || []).any?{|col|col.name.to_s == attr.to_s}
129
+ self.table_exist? ?
130
+ (self.columns || []).any?{|col|col.name.to_s == attr.to_s} : false
130
131
  end
131
132
 
132
133
  def attr_enumeable_base(*args, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akm-selectable_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Akima
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-06 00:00:00 -08:00
12
+ date: 2009-02-10 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -24,7 +24,6 @@ extra_rdoc_files: []
24
24
  files:
25
25
  - VERSION.yml
26
26
  - lib/selectable_attr
27
- - lib/selectable_attr/#enum.rb#
28
27
  - lib/selectable_attr/base.rb
29
28
  - lib/selectable_attr/enum.rb
30
29
  - lib/selectable_attr/version.rb