roqua/physiqual

View on GitHub
lib/physiqual/omniauth/strategies.rb

Summary

Maintainability
A
0 mins
Test Coverage
module OmniAuth
  module Strategies
    class PhysiqualFitbitOauth2 < FitbitOauth2
      def name
        :physiqual_fitbit_oauth2
      end

      def path_prefix
        "#{Rails.application.routes.url_helpers.physiqual_path}/auth"
      end
    end

    class PhysiqualGoogleOauth2 < GoogleOauth2
      def name
        :physiqual_google_oauth2
      end

      def path_prefix
        "#{Rails.application.routes.url_helpers.physiqual_path}/auth"
      end
    end
  end
end