https://github.com/valiot/administrate-field-refile
View settings for refile on Administrate gem
https://github.com/valiot/administrate-field-refile
Last synced: 3 months ago
JSON representation
View settings for refile on Administrate gem
- Host: GitHub
- URL: https://github.com/valiot/administrate-field-refile
- Owner: valiot
- License: mit
- Created: 2016-02-11T06:18:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T19:10:47.000Z (over 8 years ago)
- Last Synced: 2025-02-05T07:04:03.730Z (4 months ago)
- Language: HTML
- Size: 11.7 KB
- Stars: 4
- Watchers: 9
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AdministrateFieldRefile
[]()All you need to integrate Refile with Administrate.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'administrate-field-refile'
```And then execute:
```
$ bundle install
```## Usage
In your Dashboard `ATTRIBUTE_TYPES` use the field type `Field::Refile`. i.e.
```ruby
ATTRIBUTE_TYPES = {
images_files: Field::Refile
}
```By default all `Refile` options are false, you can set them to true like this:
```ruby
ATTRIBUTE_TYPES = {
images_files: Field::Refile.with_options(direct: true, presigned: true, multiple: true)
}
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/DisruptiveAngels/administrate-field-refile.
## License
[MIT License](https://github.com/DisruptiveAngels/administrate-field-refile/blob/better_readme/LICENSE)