iatelier 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iatelier/models/book.rb +2 -2
- data/lib/iatelier/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef11774e93cc025d29decaaedba45986d004be469934d60057f3f063bec3958c
|
4
|
+
data.tar.gz: 0f6369bfee5d09084dfb0a49db2c17bd34ef21053ae609fe4a993794bc38853c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3d0d71d911f5735a11e1f2a281a3f28fea9796d6d538e6c71b0bf0f5b86e22e6643627c7d8864c8cff1695ee3f4a704086ed5c6f2bd9789f86666f34ae9c0f
|
7
|
+
data.tar.gz: 1224abfc23f59ebd076f1fa55714ad991d43e9ea385b47f2699174ba9cf04db795c6814c71dcd162484ac5a140b8764bbb53c577b8df4f97659d4911d21cac98
|
data/lib/iatelier/models/book.rb
CHANGED
@@ -24,7 +24,7 @@ class Book < ActiveRecord::Base
|
|
24
24
|
|
25
25
|
accepts_nested_attributes_for :title, :slug, :subtitle, :description, :thumbnail, :timestamp
|
26
26
|
validates_associated :slug
|
27
|
-
|
27
|
+
|
28
28
|
attr_accessor :namespace
|
29
29
|
|
30
30
|
def kind
|
@@ -65,7 +65,7 @@ class Book < ActiveRecord::Base
|
|
65
65
|
|
66
66
|
def content
|
67
67
|
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true)
|
68
|
-
return markdown.render(content_raw.to_s)
|
68
|
+
return markdown.render(content_raw.to_s.force_encoding(Encoding::UTF_8))
|
69
69
|
end
|
70
70
|
|
71
71
|
def sync_keywords params
|
data/lib/iatelier/version.rb
CHANGED