duck_record 0.0.9 → 0.0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ecea50d445f7446966d18efc45e498a6748e965
4
- data.tar.gz: b218dff359b164ae64f38663b756f9f5de023262
3
+ metadata.gz: 14c5a6fb588c5f26c7779a9f4b3bd48971e1a94a
4
+ data.tar.gz: 853b2cfd5c430487eb3bd3b05b0ad1fc18b94349
5
5
  SHA512:
6
- metadata.gz: b296929403c1a0753a179b07db103788861968c0842d02d9bd22f88e4bcb8937755b2975c11d80940e6d02427d6e42c4582166d98c3ee08b5390153b02d1c159
7
- data.tar.gz: e96ee2e901aa8d146ea730c41d8fa817d0d290d3dcefa6448a21b87e2c68798e8544d075b62f2aa4211bab85b916a0207c32719f7aecdba681d005e61623430f
6
+ metadata.gz: f5306ca0879a4d3a32cb32a916a4e32587610c061dd6e76821d96008c755338eb5c86e71a0b19c789e27801504b1ea0709aa597f65e7ab46ac564e2fd4419bf5
7
+ data.tar.gz: 296acc961ba9a862c335dabfb08a619293153a97dfe5f753dbcddae7a20e857a2ecd7d4d7be4451f5c9b70e5688c6db31dcd03787fffee13a044831d26fecd0e
@@ -356,7 +356,7 @@ module DuckRecord
356
356
  if method_defined?(:#{association_name}_attributes=)
357
357
  remove_method(:#{association_name}_attributes=)
358
358
  end
359
- def #{association_name}_attributes=(attributes)
359
+ def #{association_name}_attributes=(attributes, _force_write_readonly: false)
360
360
  assign_nested_attributes_for_#{type}_association(:#{association_name}, attributes)
361
361
  end
362
362
  eoruby
@@ -48,7 +48,7 @@ module DuckRecord
48
48
  # Workaround for Ruby 2.2 "private attribute?" warning.
49
49
  protected
50
50
 
51
- attr_reader :name, :block, :adapter, :override
51
+ attr_reader :name, :block, :override
52
52
 
53
53
  def priority
54
54
  result = 0
@@ -11,7 +11,7 @@ module DuckRecord
11
11
  module Validations
12
12
  extend ActiveSupport::Concern
13
13
  include ActiveModel::Validations
14
-
14
+
15
15
  # Runs all the validations within the specified context. Returns +true+ if
16
16
  # no errors are found, +false+ otherwise.
17
17
  #
@@ -1,3 +1,3 @@
1
1
  module DuckRecord
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.9.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duck_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-25 00:00:00.000000000 Z
11
+ date: 2017-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.6.8
158
+ rubygems_version: 2.6.11
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Used for creating virtual models like ActiveType or ModelAttribute does