documentation-editor 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ed6f8ee85ae24985b7dedbdf30380a31dc5d392
|
4
|
+
data.tar.gz: 23cd83513142d1b48956035e24dd06f03db98dbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe11497eca3cf438f8bec4e74bd74711d48d42e55e258c1b4fdb059bf68906729d174bc6c6e3df92582723c8c4e8a451208a6c41e7a49135c29e43f7cfef3947
|
7
|
+
data.tar.gz: 6b21de6dc04da6a8d3bce79e4d358356098f6b1b3ceec628d82241acf6c95fb1aa3fb8e4fba4c8b7c2b5a2603721e634f0e1c7b3f5dd642e0d874ee301b7fc53
|
data/README.md
CHANGED
@@ -101,6 +101,9 @@ DocumentationEditor::Config.layout = 'my_custom_layout'
|
|
101
101
|
# to protect the access to the edition pages to admin
|
102
102
|
DocumentationEditor::Config.is_admin = :method_checking_if_admin?
|
103
103
|
|
104
|
+
# to configure a before_filter to add on the 'show' & 'preview' actions
|
105
|
+
DocumentationEditor::Config.before_filter = :my_before_filter
|
106
|
+
|
104
107
|
# to use custom options for paperclip
|
105
108
|
DocumentationEditor::Config.paperclip_options = {
|
106
109
|
storage: 's3',
|
@@ -15,6 +15,10 @@ module DocumentationEditor
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
+
if DocumentationEditor::Config.before_filter
|
19
|
+
before_filter DocumentationEditor::Config.before_filter, only: [:preview, :show]
|
20
|
+
end
|
21
|
+
|
18
22
|
before_filter :setup_page, only: [:edit, :source, :update, :preview, :destroy, :history, :versions]
|
19
23
|
|
20
24
|
def index
|