froala-editor-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/froala-editor-sdk/file.rb +2 -2
- data/lib/froala-editor-sdk/version.rb +1 -1
- 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: b215ddc9205aff5ce708096e7d5a2b5d919dff1d
|
|
4
|
+
data.tar.gz: a20709121f413700510b4c5b58046ec2ad066478
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04b2db37f9f18f1be79ad2a41e47e62f6552fd962fcfb4d0784ce29f79d967c6cbe04653903af18dac037bbba20a5324faeefedcad920708361754116c80b1c4
|
|
7
|
+
data.tar.gz: 9d4a1a020fc91cbca4fbbf0f39b88d5159fd6a14d6faa0ca6a64bc03d3f4cf9a2bb312a398272bac504e2efa0c6d1bdc4c2ee07b06c920335b2e9e71e6bdb1dc
|
|
@@ -24,10 +24,10 @@ module FroalaEditorSDK
|
|
|
24
24
|
# +upload_path+:: Server upload path, a storage path where the file will be stored.
|
|
25
25
|
# +options+:: Hash object that contains configuration parameters for uploading a file.
|
|
26
26
|
# Returns json object
|
|
27
|
-
def self.upload(params, upload_path = @@default_upload_path, options =
|
|
27
|
+
def self.upload(params, upload_path = @@default_upload_path, options = {})
|
|
28
28
|
|
|
29
29
|
# Merge options.
|
|
30
|
-
options =
|
|
30
|
+
options = @@default_options.merge(options)
|
|
31
31
|
|
|
32
32
|
file = params[options[:fieldname]]
|
|
33
33
|
|