acts_as_controller_for 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module ActsAsControllerFor
|
|
11
11
|
class_variable_set :@@options, options
|
12
12
|
|
13
13
|
# Load and authorize (via +cancan+ gem) if set to
|
14
|
-
load_and_authorize_resource if options[:load_and_authorize]
|
14
|
+
load_and_authorize_resource options[:load_and_authorize] if options[:load_and_authorize]
|
15
15
|
|
16
16
|
# Define actions...
|
17
17
|
include InstanceMethods
|