EppO/rolify — Issue #16: remove the ugly if-clause in the initializer
Author: EppO
Created: 2011-10-18 05:02:44+00:00
State: open

Find a way to determine in the initializer whether or not it's loaded by console or server.
Currently the ugly code is :

Rolify.dynamic_shortcuts = <%= options[:dynamic_shortcuts].to_s %> if ARGV[0] != "db:migrate"

I am pretty sure we can clean this up.