lib/generators/templates/opro.rb in opro-0.0.1.pre1.0.2 vs lib/generators/templates/opro.rb in opro-0.0.1
- old
+ new
@@ -1,4 +1,10 @@
Opro.setup do |config|
- ## Uncomment to configure devise
- # config.auth_strategy = :devise
+ ## Configure the auth_strategy or use set :login_method, :logout_method, & :authenticate_user_method
+ config.auth_strategy = :devise
+
+ ## Add or remove application permissions
+ # Read permission is turned on by default (any request with [GET])
+ # Write permission is requestable by default (any request other than [GET])
+ # Custom permissions can be configured by adding them to the request_permissions Array and configuring require_oauth_permissions in the controller
+ config.request_permissions = [:write]
end
\ No newline at end of file