active_delegate 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b9615c5b90ac00644880da87395a7540564480f
4
- data.tar.gz: eb3b41a9fb3433b2a607e05b60561eedd89dc46c
3
+ metadata.gz: cd11ab2bc38bf3b5315557db8e6587139b949d8d
4
+ data.tar.gz: 394cbaac82ad1a85f794bdecdfcd1cf3d2b26b49
5
5
  SHA512:
6
- metadata.gz: 963a209b92c4c07ef31784e7d3fdd47420e40c3982309f477034cf9fc714acb74c84ae8b45dc2376bc6c018c15100e627107e6152d85d44e9f21ae04486cc025
7
- data.tar.gz: 2df53eb000aa943ac0683e661b7fc38e1e40773f67db68ec1a61cee2913691b797ba331a901c46547a21d512845649861db124a8ab22379e73cc4f5dbfd598f3
6
+ metadata.gz: 8c319e006da9b6ded2bcbc1510efdf606cb226c790c9b2259c8a9d57dfd9b9d15cb3e118b689841e2f3d6767bab213ebf7eda36ab0bee8125b73f2016de779c3
7
+ data.tar.gz: 166c56f9f170be0178902cbba74af77011509ad4d03f800632ebf2ae5f7e1762f871d3da4961abbb7391ff83e42f8b0b2b035c565f3e8b8402ad9af1649bb857
@@ -136,13 +136,12 @@ module ActiveDelegate
136
136
 
137
137
  undefined.each do |attrib|
138
138
  attr_name = attrib.to_s.sub("#{attribute_prefix}_", '')
139
- attr_deft = @options[:default] || association_class.column_defaults["#{attr_name}"]
140
139
  cast_type = @options[:cast_type] || association_class.attribute_types["#{attr_name}"]
141
140
 
142
- @model.attribute(attrib, cast_type, default: attr_deft)
141
+ @model.attribute(attrib, cast_type)
143
142
 
144
143
  if @options[:alias].present?
145
- @model.attribute(@options[:alias], cast_type, default: attr_deft)
144
+ @model.attribute(@options[:alias], cast_type)
146
145
  @model.alias_attribute(@options[:alias], attrib)
147
146
  end
148
147
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveDelegate
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_delegate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli