Add frozen_string_literal magic comment

re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
This commit is contained in:
James Mason 2018-05-07 16:47:29 -07:00
parent dd0a52cca9
commit 6d31dfeef4
568 changed files with 1134 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org' source 'https://rubygems.org'
# rails-assets requires >= 1.8.4 # rails-assets requires >= 1.8.4

View file

@ -1,4 +1,6 @@
#!/usr/bin/ruby #!/usr/bin/ruby
# frozen_string_literal: true
# #
# More info at https://github.com/guard/guard#readme # More info at https://github.com/guard/guard#readme

View file

@ -1,4 +1,6 @@
#!/usr/bin/env rake #!/usr/bin/env rake
# frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake, # Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

2
Vagrantfile vendored
View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# -*- mode: ruby -*- # -*- mode: ruby -*-
# vi: set ft=ruby : # vi: set ft=ruby :

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class BaseController < ApplicationController class BaseController < ApplicationController
before_action :verify_user_admin before_action :verify_user_admin

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class BoothsController < Admin::BaseController class BoothsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class CampaignsController < Admin::BaseController class CampaignsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class CfpsController < Admin::BaseController class CfpsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class CommentsController < Admin::BaseController class CommentsController < Admin::BaseController
load_and_authorize_resource load_and_authorize_resource

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class CommercialsController < Admin::BaseController class CommercialsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class ConferencesController < Admin::BaseController class ConferencesController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class ContactsController < Admin::BaseController class ContactsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class DifficultyLevelsController < Admin::BaseController class DifficultyLevelsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class EmailsController < Admin::BaseController class EmailsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class EventSchedulesController < Admin::BaseController class EventSchedulesController < Admin::BaseController
load_and_authorize_resource :event_schedule load_and_authorize_resource :event_schedule

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class EventTypesController < Admin::BaseController class EventTypesController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class EventsController < Admin::BaseController class EventsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class LodgingsController < Admin::BaseController class LodgingsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class OrganizationsController < Admin::BaseController class OrganizationsController < Admin::BaseController
load_and_authorize_resource :organization load_and_authorize_resource :organization

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class PhysicalTicketsController < Admin::BaseController class PhysicalTicketsController < Admin::BaseController
before_action :authenticate_user! before_action :authenticate_user!

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class ProgramsController < Admin::BaseController class ProgramsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class QuestionsController < Admin::BaseController class QuestionsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class RegistrationPeriodsController < Admin::BaseController class RegistrationPeriodsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class RegistrationsController < Admin::BaseController class RegistrationsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class ReportsController < Admin::BaseController class ReportsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class ResourcesController < Admin::BaseController class ResourcesController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class RolesController < Admin::BaseController class RolesController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class RoomsController < Admin::BaseController class RoomsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class SchedulesController < Admin::BaseController class SchedulesController < Admin::BaseController
# By authorizing 'conference' resource, we can ensure there will be no unauthorized access to # By authorizing 'conference' resource, we can ensure there will be no unauthorized access to

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class SplashpagesController < Admin::BaseController class SplashpagesController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class SponsorsController < Admin::BaseController class SponsorsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class SponsorshipLevelsController < Admin::BaseController class SponsorshipLevelsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class TargetsController < Admin::BaseController class TargetsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class TicketScanningsController < Admin::BaseController class TicketScanningsController < Admin::BaseController
before_action :authenticate_user! before_action :authenticate_user!

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class TicketsController < Admin::BaseController class TicketsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class TracksController < Admin::BaseController class TracksController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class UsersController < Admin::BaseController class UsersController < Admin::BaseController
load_and_authorize_resource load_and_authorize_resource

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class VenueCommercialsController < Admin::BaseController class VenueCommercialsController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class VenuesController < Admin::BaseController class VenuesController < Admin::BaseController
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class VersionsController < Admin::BaseController class VersionsController < Admin::BaseController
load_resource :conference, find_by: :short_title, only: :index load_resource :conference, find_by: :short_title, only: :index

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
class VolunteersController < Admin::BaseController class VolunteersController < Admin::BaseController
include VolunteersHelper include VolunteersHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Api module Api
class BaseController < ActionController::Base class BaseController < ActionController::Base
protect_from_forgery with: :exception protect_from_forgery with: :exception

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Api module Api
module V1 module V1
class ConferencesController < Api::BaseController class ConferencesController < Api::BaseController

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Api module Api
module V1 module V1
class EventsController < Api::BaseController class EventsController < Api::BaseController

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Api module Api
module V1 module V1
class RoomsController < Api::BaseController class RoomsController < Api::BaseController

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Api module Api
module V1 module V1
class SpeakersController < Api::BaseController class SpeakersController < Api::BaseController

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Api module Api
module V1 module V1
class TracksController < Api::BaseController class TracksController < Api::BaseController

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base
before_action :set_paper_trail_whodunnit before_action :set_paper_trail_whodunnit
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class BoothsController < ApplicationController class BoothsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CommercialsController < ApplicationController class CommercialsController < ApplicationController
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title
before_action :set_event before_action :set_event

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConferenceRegistrationsController < ApplicationController class ConferenceRegistrationsController < ApplicationController
before_action :authenticate_user!, except: [:new, :create] before_action :authenticate_user!, except: [:new, :create]
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConferencesController < ApplicationController class ConferencesController < ApplicationController
protect_from_forgery with: :null_session protect_from_forgery with: :null_session
before_action :respond_to_options before_action :respond_to_options

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConfirmationsController < Devise::ConfirmationsController class ConfirmationsController < Devise::ConfirmationsController
protected protected

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class OpenidsController < ApplicationController class OpenidsController < ApplicationController
load_and_authorize_resource :user load_and_authorize_resource :user
load_and_authorize_resource through: :user load_and_authorize_resource through: :user

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class OrganizationsController < ApplicationController class OrganizationsController < ApplicationController
load_and_authorize_resource :organization load_and_authorize_resource :organization

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class PaymentsController < ApplicationController class PaymentsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
load_and_authorize_resource load_and_authorize_resource

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class PhysicalTicketsController < ApplicationController class PhysicalTicketsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ProposalsController < ApplicationController class ProposalsController < ApplicationController
before_action :authenticate_user!, except: [:show, :new, :create] before_action :authenticate_user!, except: [:show, :new, :create]
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RegistrationsController < Devise::RegistrationsController class RegistrationsController < Devise::RegistrationsController
prepend_before_action :check_captcha, only: [:create] prepend_before_action :check_captcha, only: [:create]

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class SchedulesController < ApplicationController class SchedulesController < ApplicationController
load_and_authorize_resource load_and_authorize_resource
protect_from_forgery with: :null_session protect_from_forgery with: :null_session

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class SubscriptionsController < ApplicationController class SubscriptionsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class TicketPurchasesController < ApplicationController class TicketPurchasesController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class TicketsController < ApplicationController class TicketsController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class TracksController < ApplicationController class TracksController < ApplicationController
load_resource :conference, find_by: :short_title load_resource :conference, find_by: :short_title
load_resource :program, through: :conference, singleton: true load_resource :program, through: :conference, singleton: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Users module Users
class OmniauthCallbacksController < Devise::OmniauthCallbacksController class OmniauthCallbacksController < Devise::OmniauthCallbacksController
skip_before_filter :verify_authenticity_token skip_before_filter :verify_authenticity_token

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class UsersController < ApplicationController class UsersController < ApplicationController
load_and_authorize_resource load_and_authorize_resource

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Admin module Admin
module VolunteersHelper module VolunteersHelper
def can_manage_volunteers?(conference) def can_manage_volunteers?(conference)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module ApplicationHelper module ApplicationHelper
# Returns a string build from the start and end date of the given conference. # Returns a string build from the start and end date of the given conference.
# #

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module ConferenceHelper module ConferenceHelper
# Return true if only call_for_papers or call_for_tracks or call_for_booths is open # Return true if only call_for_papers or call_for_tracks or call_for_booths is open
def one_call_open(*calls) def one_call_open(*calls)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module DateTimeHelper module DateTimeHelper
## ##
# Includes functions related to date or time manipulations # Includes functions related to date or time manipulations

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module EventsHelper module EventsHelper
## ##
# Includes functions related to events # Includes functions related to events

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module FormatHelper module FormatHelper
## ##
# Includes functions related to formatting (like adding classes, colors) # Includes functions related to formatting (like adding classes, colors)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module PathsHelper module PathsHelper
## ##
# Includes functions related to links or redirects # Includes functions related to links or redirects

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module UsersHelper module UsersHelper
## ##
# Includes functions related to users # Includes functions related to users

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module VersionsHelper module VersionsHelper
## ##
# Groups functions related to change description # Groups functions related to change description

View file

@ -1,2 +1,4 @@
# frozen_string_literal: true
class ApplicationJob < ActiveJob::Base class ApplicationJob < ActiveJob::Base
end end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConferenceCfpUpdateMailJob < ApplicationJob class ConferenceCfpUpdateMailJob < ApplicationJob
queue_as :default queue_as :default

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConferenceDateUpdateMailJob < ApplicationJob class ConferenceDateUpdateMailJob < ApplicationJob
queue_as :default queue_as :default

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConferenceRegistrationDateUpdateMailJob < ApplicationJob class ConferenceRegistrationDateUpdateMailJob < ApplicationJob
queue_as :default queue_as :default

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConferenceScheduleUpdateMailJob < ApplicationJob class ConferenceScheduleUpdateMailJob < ApplicationJob
queue_as :default queue_as :default

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ConferenceVenueUpdateMailJob < ApplicationJob class ConferenceVenueUpdateMailJob < ApplicationJob
queue_as :default queue_as :default

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EventCommentMailJob < ApplicationJob class EventCommentMailJob < ApplicationJob
queue_as :default queue_as :default

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Mailbot < ActionMailer::Base class Mailbot < ActionMailer::Base
def registration_mail(conference, user) def registration_mail(conference, user)
mail(to: user.email, mail(to: user.email,

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Ability class Ability
include CanCan::Ability include CanCan::Ability

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class AdminAbility class AdminAbility
include CanCan::Ability include CanCan::Ability

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Ahoy module Ahoy
class Event < ApplicationRecord class Event < ApplicationRecord
self.table_name = 'ahoy_events' self.table_name = 'ahoy_events'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Answer < ApplicationRecord class Answer < ApplicationRecord
has_many :qanswers has_many :qanswers
has_many :questions, through: :qanswers has_many :questions, through: :qanswers

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true self.abstract_class = true
end end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Booth < ApplicationRecord class Booth < ApplicationRecord
include ActiveRecord::Transitions include ActiveRecord::Transitions
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id } has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class BoothRequest < ApplicationRecord class BoothRequest < ApplicationRecord
belongs_to :booth belongs_to :booth
belongs_to :user belongs_to :user

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Campaign < ApplicationRecord class Campaign < ApplicationRecord
validates :name, :utm_campaign, presence: true validates :name, :utm_campaign, presence: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# cannot delete program if there are events submitted # cannot delete program if there are events submitted
class Cfp < ApplicationRecord class Cfp < ApplicationRecord

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Comment < ApplicationRecord class Comment < ApplicationRecord
acts_as_nested_set scope: %i(commentable_id commentable_type) acts_as_nested_set scope: %i(commentable_id commentable_type)
validates :body, presence: true validates :body, presence: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Commercial < ApplicationRecord class Commercial < ApplicationRecord
require 'oembed' require 'oembed'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module RevisionCount module RevisionCount
extend ActiveSupport::Concern extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Conference < ApplicationRecord class Conference < ApplicationRecord
include RevisionCount include RevisionCount
require 'uri' require 'uri'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Contact < ApplicationRecord class Contact < ApplicationRecord
has_paper_trail on: [:update], ignore: [:updated_at], meta: { conference_id: :conference_id } has_paper_trail on: [:update], ignore: [:updated_at], meta: { conference_id: :conference_id }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class DifficultyLevel < ApplicationRecord class DifficultyLevel < ApplicationRecord
belongs_to :program, touch: true belongs_to :program, touch: true
has_many :events, dependent: :nullify has_many :events, dependent: :nullify

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EmailSettings < ApplicationRecord class EmailSettings < ApplicationRecord
belongs_to :conference belongs_to :conference

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Event < ApplicationRecord class Event < ApplicationRecord
include ActiveRecord::Transitions include ActiveRecord::Transitions
include RevisionCount include RevisionCount

Some files were not shown because too many files have changed in this diff Show more