enum_records 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/enum_records.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{enum_records}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alex Tkachev"]
12
- s.date = %q{2011-07-25}
12
+ s.date = %q{2011-07-26}
13
13
  s.description = %q{This gem allows to create enum records (named records) and to retrieve them easily. Supports globalize3 localization in enum fields initialization. }
14
14
  s.email = %q{tkachev.alex@gmail.com}
15
15
  s.extra_rdoc_files = [
data/lib/enum_records.rb CHANGED
@@ -60,7 +60,7 @@ module EnumRecords
60
60
 
61
61
  def add_new_enum(method_sym, options)
62
62
  # Check that the model's translation table exist if locales are passed so that in migration we will not have an exception
63
- return if @model_class._enums[:globalized] && !options[:locales].blank? && !@model_class.connection.table_exists?(@model_class.translations_table_name)
63
+ return if @model_class._enums[:globalized] && !@model_class.connection.table_exists?(@model_class.translations_table_name)
64
64
 
65
65
  enum_name = method_sym.to_s
66
66
  @model_class._enums[:definitions][enum_name] = options
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_records
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Tkachev
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-25 00:00:00 +03:00
18
+ date: 2011-07-26 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency