archivist 1.0.5 → 1.0.5.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.
Files changed (2) hide show
  1. data/lib/archivist/archive.rb +1 -3
  2. metadata +3 -2
@@ -39,9 +39,7 @@ module Archivist
39
39
  def build_proxy_method(method_name)
40
40
  class_eval <<-EOF
41
41
  def #{method_name}(*args,&block)
42
- instance = #{get_klass_name}.new
43
- attrs = self.attributes.select{|k,v| #{get_klass.new.attribute_names.inspect}.include?(k.to_s)}
44
- instance.attributes= attrs,false
42
+ instance = #{get_klass_name}.new(self.attributes.reject{|k,v| !#{get_klass.new.attribute_names.inspect}.include?(k.to_s)})
45
43
  instance.#{method_name}(*args,&block)
46
44
  end
47
45
  EOF
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archivist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 73
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 5
10
- version: 1.0.5
10
+ - 1
11
+ version: 1.0.5.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Tyler Pickett