Sha256: 432a4bef6b1ab36bc89bad9da1c2b55f3075b73614a1eee15918c6e5a6ac1a4b

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

# AdministrateFieldRefile
[![Gem](https://img.shields.io/gem/v/administrate-field-refile.svg)]()

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)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
administrate-field-refile-0.0.7 README.md