set_man 1.0.0 → 1.0.1

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.
@@ -3,7 +3,7 @@ class SetManCreate<%= table_name.camelize %> < ActiveRecord::Migration
3
3
  create_table :<%= table_name %> do |t|
4
4
  t.string :name
5
5
  t.text :value
6
- t.string :type
6
+ t.string :klass
7
7
  end
8
8
 
9
9
  add_index :<%= table_name %>, :name, :unique => true
@@ -163,7 +163,9 @@ module SetMan::ActiveRecord
163
163
  protected
164
164
 
165
165
  def to_sql
166
- self[:value], self[:klass] = SetMan::SqlConverter.to_sql(self[:value])
166
+ sql = SetMan::SqlConverter.to_sql(self[:value])
167
+ self[:value] = sql[0]
168
+ self[:klass] = sql[1]
167
169
  end
168
170
 
169
171
  def from_sql
@@ -3,7 +3,7 @@ module SetMan
3
3
 
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- PATCH = 0
6
+ PATCH = 1
7
7
 
8
8
  STRING = [MAJOR,MINOR,PATCH].compact.join('.')
9
9
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: set_man
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - plutalov_alexey