spree/spree_social

View on GitHub
app/controllers/spree/omniauth_callbacks_controller.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method provides_callback_for has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.provides_callback_for(*providers)
    providers.each do |provider|
      class_eval <<-FUNCTION_DEFS, __FILE__, __LINE__ + 1
        def #{provider}
          if request.env['omniauth.error'].present?
Severity: Minor
Found in app/controllers/spree/omniauth_callbacks_controller.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status