App slowing down as the Number of register increase authorizing with CanCan

14 views
Skip to first unread message

Jonathan German

unread,
May 28, 2012, 3:25:25 PM5/28/12
to rails_admin
Greetings,
I'm using rails_admin in a project and is hosted in Heroku... I'm
facing a huge trouble, we are authorizing with cancan and we are
having issues because mainly part of our app's models are being
conditioned by a specific field's value, e.g. can :manage, Foo, :state
=> "someState", This kind of conditioning last more and more as the
app grows and have more registers of the entity evaluated, and when
rails_admin initialize on server startup it is taking so long time
that even our app reach the boot time limit on our host and is not
starting online, so what you recommend us in order to resolve this
issue?

Benoit Bénézech

unread,
May 31, 2012, 8:08:09 AM5/31/12
to rails...@googlegroups.com
This sounds like a Cancan pb?
RailsAdmin only calls Cancan at runtime.
Reply all
Reply to author
Forward
0 new messages