Closed GoogleCodeExporter closed 9 years ago
authorized_for_#{action_name}? must be defined in a model. You can't access to
session in models, but ActiveScaffold enables you to access to current_user. If
you have a controller method named current_user, you can use
current_user.user_type in your models for example
Original comment by sergio.c...@gmail.com
on 22 Jun 2010 at 7:15
Original issue reported on code.google.com by
sonirajesh80
on 21 Jun 2010 at 11:15