makes spaces consistent
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
class AccountController < ApplicationController
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_account
|
||||
load_and_authorize_resource class: "User"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Admin::CommentsController < Admin::BaseController
|
||||
|
||||
has_filters %w{all with_confirmed_hide}
|
||||
|
||||
before_filter :load_comment, only: [:confirm_hide, :restore]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Admin::ModeratorsController < Admin::BaseController
|
||||
|
||||
load_and_authorize_resource
|
||||
|
||||
def index
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Admin::OrganizationsController < Admin::BaseController
|
||||
|
||||
has_filters %w{all pending verified rejected}, only: :index
|
||||
|
||||
load_and_authorize_resource except: :search
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Admin::UsersController < Admin::BaseController
|
||||
|
||||
has_filters %w{all with_confirmed_hide}, only: :index
|
||||
|
||||
before_filter :load_user, only: [:confirm_hide, :restore]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Api::StatsController < Api::ApiController
|
||||
|
||||
def show
|
||||
unless params[:events].present? || params[:visits].present?
|
||||
return render json: {}, status: :bad_request
|
||||
@@ -19,4 +20,5 @@ class Api::StatsController < Api::ApiController
|
||||
|
||||
render json: ds.build
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -2,9 +2,9 @@ class Moderation::BaseController < ApplicationController
|
||||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :verify_moderator
|
||||
|
||||
skip_authorization_check
|
||||
before_action :verify_moderator
|
||||
|
||||
private
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Moderation::CommentsController < Moderation::BaseController
|
||||
|
||||
has_filters %w{all pending_flag_review with_ignored_flag}, only: :index
|
||||
|
||||
before_filter :load_comments, only: :index
|
||||
|
||||
load_and_authorize_resource
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Moderation::DebatesController < Moderation::BaseController
|
||||
|
||||
has_filters %w{all pending_flag_review with_ignored_flag}, only: :index
|
||||
|
||||
before_filter :load_debates, only: :index
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Organizations::RegistrationsController < Devise::RegistrationsController
|
||||
|
||||
def new
|
||||
super do |user|
|
||||
user.build_organization
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class PagesController < ApplicationController
|
||||
|
||||
skip_authorization_check
|
||||
|
||||
def census_terms
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class StatsController < ApplicationController
|
||||
skip_authorization_check
|
||||
before_action :verify_administrator
|
||||
skip_authorization_check
|
||||
|
||||
def show
|
||||
@event_types = Ahoy::Event.select(:name).uniq.pluck(:name)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||
|
||||
def self.provides_callback_for(provider)
|
||||
class_eval %Q{
|
||||
def #{provider}
|
||||
@@ -26,4 +27,5 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||
finish_signup_path
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user