Skip to content

Commit 65bde98

Browse files
committed
v0.2.0
1 parent 6523b94 commit 65bde98

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.gem
12
*.orig
23

34
/.rspec_failures

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ActiveAdmin jQuery-File-Upload [![Gem Version](https://badge.fury.io/rb/activeadmin_jfu_upload.svg)](https://badge.fury.io/rb/activeadmin_jfu_upload)
22

3-
An ActiveAdmin plugin to use [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload) for file uploads in forms.
3+
An ActiveAdmin 2.x plugin to use [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload) for file uploads in forms.
44

55
Features:
66
- AJAX uploads
@@ -17,7 +17,7 @@ The file is uploaded when selected, not when the form is submitted, that's why a
1717
```
1818
- Add at the end of your ActiveAdmin javascripts (_app/assets/javascripts/active_admin.js_):
1919
```js
20-
//= require activeadmin/jfu_upload/jquery.fileupload.js
20+
//= require activeadmin/jfu_upload/jquery.fileupload
2121
//= require activeadmin/jfu_upload_input
2222
```
2323
- Use the input with `as: :jfu_upload` in Active Admin model conf
@@ -56,10 +56,9 @@ f.input :cover, as: :jfu_upload, hint: f.object.cover? ? image_tag( f.object.cov
5656
## Notes
5757

5858
- The string field for the upload is used to store temp data, so it could be necessary to make it bigger
59-
6059
- If you want to customize the upload action take a look [here](lib/activeadmin/jfu_upload/engine.rb)
61-
6260
- Tested only with CarrierWave uploader gem
61+
- To use this plugins with ActiveAdmin 1.x please use the version 0.1.8
6362

6463
## Do you like it? Star it!
6564

activeadmin_jfu_upload.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.email = 'mat@blocknot.es'
1313
spec.homepage = 'https://github.com/blocknotes/activeadmin_jfu_upload'
1414

15-
spec.files = `git ls-files -z`.split("\x0")
15+
spec.files = Dir['{app,lib}/**/*', 'LICENSE.txt', 'Rakefile', 'README.md']
1616
spec.require_paths = ['lib']
1717

1818
spec.add_runtime_dependency 'activeadmin', '~> 2.0'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module ActiveAdmin
22
module JfuUpload
3-
VERSION = '0.1.8'
3+
VERSION = '0.2.0'.freeze
44
end
55
end

0 commit comments

Comments
 (0)