string literals; why not.
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
class AccountsController < ApplicationController
|
||||
before_action :set_account, only: [:show, :edit, :reveal, :update, :destroy]
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
class AuthController < ApplicationController
|
||||
skip_before_action :verify_session
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
module ApplicationHelper
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
class Account < ApplicationRecord
|
||||
serialize :password, CryptSerializer
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
class AppConfig < Settingslogic
|
||||
source "#{Rails.root}/config/application.yml"
|
||||
namespace Rails.env
|
||||
|
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
require 'openssl'
|
||||
require 'base64'
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
json.extract! account, :id, :username, :password, :home, :site, :created_at, :updated_at
|
||||
json.url account_url(account, format: :json)
|
||||
|
@ -1 +1,2 @@
|
||||
# frozen_string_literal: true
|
||||
json.array! @accounts, partial: 'accounts/account', as: :account
|
||||
|
@ -1 +1,2 @@
|
||||
# frozen_string_literal: true
|
||||
json.partial! "accounts/account", account: @account
|
||||
|
Reference in New Issue
Block a user