sequel_paperclip 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -8,7 +8,7 @@ module Sequel
8
8
  module Plugins
9
9
  module Paperclip
10
10
  def self.apply(model, opts={}, &block)
11
- model.class_inheritable_hash :attachments
11
+ model.class_attribute :attachments
12
12
  model.attachments = {}
13
13
  end
14
14
 
@@ -40,7 +40,7 @@ module Sequel
40
40
  attr_accessor name
41
41
 
42
42
  Attachment.preprocess_options(options)
43
- self.attachments[name] = options
43
+ self.attachments = attachments.merge(name => options)
44
44
 
45
45
  columns = db_schema.keys
46
46
  unless columns.include?(:"#{name}_filename") || columns.include?(:"#{name}_basename")
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sequel_paperclip}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corin Langosch"]
12
- s.date = %q{2010-11-22}
12
+ s.date = %q{2010-11-24}
13
13
  s.description = %q{Sequel plugin which provides Paperclip (attachments, thumbnail resizing, etc.) functionality for model.}
14
14
  s.email = %q{info@netskin.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Corin Langosch
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-22 00:00:00 +00:00
17
+ date: 2010-11-24 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency