atzorvas/ccradio

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

Summary

Maintainability
A
0 mins
Test Coverage

Showing 12 of 12 total issues

Missing space after #.
Open

sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated

Line is too long. [102/80]
Open

sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated

Use the new Ruby 1.9 hash syntax.
Open

sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Wordpress Hosted"

Missing top-level class documentation comment.
Open

class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController

Line is too long. [94/80]
Open

flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Wordpress Hosted"

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

session["devise.wordpress_hosted_data"] = request.env["omniauth.auth"]

Use the new Ruby 1.9 hash syntax.
Open

flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Wordpress Hosted"

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

@user = User.from_omniauth(request.env["omniauth.auth"])

Use nested module/class definitions instead of compact style.
Open

class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Wordpress Hosted"

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

session["devise.wordpress_hosted_data"] = request.env["omniauth.auth"]
Category
Status