cite-me 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cite_me.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e17596ed9d8aa408cdf4cdbd1afe34f00783ea9
|
4
|
+
data.tar.gz: b916d59ae615c07b660a03a95a21bd2cb12a38b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d18ef202113fe10b837426183cde8a9d67b9cd11f53d04c4eed22a66c162b7508bc62f451c574d57fb498a9d04a3fdb966e29cd7a829b1d16c17c7d118552e61
|
7
|
+
data.tar.gz: 60908b6d94e1c98127803b6a1e9fc19bd0ec4fa5819f17e8dc892b67a24d6515de41079f25aa7bb096a0277c23aedf4974d5261cfa588737866d5a1b8915ad73
|
data/lib/cite_me.rb
CHANGED
@@ -108,10 +108,12 @@ class Cite_Me
|
|
108
108
|
'n.d. '
|
109
109
|
end
|
110
110
|
end
|
111
|
-
|
111
|
+
|
112
112
|
def clean_hash(options)
|
113
113
|
clean_options = {}
|
114
|
-
|
114
|
+
if options.class.ancestors.include?(ActiveRecord::Base)
|
115
|
+
options = options.attributes
|
116
|
+
end
|
115
117
|
|
116
118
|
## delete any " in key (usually from ActiveRecord object) and turn it to a symbol
|
117
119
|
## we also call to_s on any present values in case a date or year is saved
|