App-wide MAX Size config

6 views
Skip to first unread message

bertly_the_coder

unread,
Jan 13, 2017, 3:12:33 PM1/13/17
to Dragonfly
Is it possible to set a application wide max-size for the uploaded files in the config/dragonfly.rb rather that setting it in each model?

Mark Evans

unread,
Jan 13, 2017, 6:14:14 PM1/13/17
to dragonf...@googlegroups.com
no - maybe you could put the validation in a module/concern if you keep writing the same thing?

On 13 Jan 2017, at 20:12, bertly_the_coder <muc...@gmail.com> wrote:

Is it possible to set a application wide max-size for the uploaded files in the config/dragonfly.rb rather that setting it in each model?

--
You received this message because you are subscribed to the Google Groups "Dragonfly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dragonfly-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bertly_the_coder

unread,
Jan 13, 2017, 10:18:15 PM1/13/17
to Dragonfly
OK. Thanks. 

Nathan Hessler

unread,
Jan 15, 2017, 3:09:47 PM1/15/17
to dragonf...@googlegroups.com
Inheritance could work here as well.
  

To unsubscribe from this group and stop receiving emails from it, send an email to dragonfly-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages