acts_as_assets 0.4.0.3 → 0.4.1
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.
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
-
|
1
|
+
###ActsAsAssets
|
2
2
|
|
3
|
-
|
3
|
+
Upload and manage differents assets related to the same Active Record model using html upload fashion.
|
4
|
+
|
5
|
+
The project comes from a bigger codebase refactoring and is still in heavy development stage.
|
6
|
+
Use with care. *API will possible change a lot in the future*.
|
@@ -42,6 +42,7 @@ module ActsAsAssets::AssetsHelper
|
|
42
42
|
def upload_complete_js_function model
|
43
43
|
"function(id, fileName, responseJSON, qq){K.allegati.onComplete(id, fileName, responseJSON, qq,'#{asset_action(model)}');}"
|
44
44
|
end
|
45
|
+
|
45
46
|
def asset_action(model)
|
46
47
|
prefix = model.to_model.class.to_s.underscore.gsub(/\//, '_')
|
47
48
|
method_name = "#{prefix}_create_asset_path".to_sym
|
@@ -1 +1 @@
|
|
1
|
-
{"asset_id": "<%= asset_id(@model) %>","body": "<%= assets_body %>","success": true}
|
1
|
+
{"asset_id": "<%= asset_id(@model) %>","body": "<%= assets_body %>","success": true, "datetime": "<%= Time.now %>"}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-02-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -230,7 +230,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: '0'
|
231
231
|
segments:
|
232
232
|
- 0
|
233
|
-
hash: -
|
233
|
+
hash: -1562795020974790596
|
234
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
235
|
none: false
|
236
236
|
requirements:
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
version: '0'
|
240
240
|
segments:
|
241
241
|
- 0
|
242
|
-
hash: -
|
242
|
+
hash: -1562795020974790596
|
243
243
|
requirements: []
|
244
244
|
rubyforge_project:
|
245
245
|
rubygems_version: 1.8.24
|