dragonfly 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dragonfly might be problematic. Click here for more details.
- data/History.txt +27 -0
- data/VERSION +1 -1
- data/dragonfly.gemspec +1 -1
- data/lib/dragonfly/active_record_extensions/class_methods.rb +2 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
0.5.5 (2010-04-13)
|
2
|
+
==================
|
3
|
+
|
4
|
+
Fixes
|
5
|
+
--------
|
6
|
+
- Rails 3 has changed 'metaclass' -> 'singleton_class' so adapt accordingly
|
7
|
+
|
8
|
+
0.5.4 (2010-04-12)
|
9
|
+
==================
|
10
|
+
|
11
|
+
Features
|
12
|
+
--------
|
13
|
+
- Allow setting the uid manually
|
14
|
+
|
15
|
+
Fixes
|
16
|
+
-----
|
17
|
+
- Assigning an accessor to nil wasn't working properly
|
18
|
+
|
19
|
+
|
20
|
+
0.5.3 (2010-03-27)
|
21
|
+
==================
|
22
|
+
|
23
|
+
Fixes
|
24
|
+
-----
|
25
|
+
- Assigning an accessor to nil wasn't working properly
|
26
|
+
|
27
|
+
|
1
28
|
0.5.2 (2010-03-04)
|
2
29
|
==================
|
3
30
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.5
|
data/dragonfly.gemspec
CHANGED
@@ -5,7 +5,8 @@ module Dragonfly
|
|
5
5
|
include Validations
|
6
6
|
|
7
7
|
def register_dragonfly_app(accessor_prefix, app)
|
8
|
-
metaclass
|
8
|
+
eigenclass = respond_to?(:metaclass) ? metaclass : singleton_class # Because rails changed the name from metaclass -> singleton_class
|
9
|
+
eigenclass.class_eval do
|
9
10
|
|
10
11
|
# Defines e.g. 'image_accessor' for any activerecord class body
|
11
12
|
define_method "#{accessor_prefix}_accessor" do |attribute|
|