Skip to content

Commit

Permalink
ci prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSipayung committed Jan 31, 2024
1 parent 7e1df8d commit 17320c6
Show file tree
Hide file tree
Showing 326 changed files with 1,855 additions and 1,200 deletions.
74 changes: 44 additions & 30 deletions .idea/sample_app.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# current gem file
source 'https://rubygems.org'
ruby '3.2.2'
Expand Down Expand Up @@ -84,5 +86,5 @@ group :production do
gem 'mysql2'
# gem 'activerecord-mysql2-adapter'
end
#upload: validation, file format, and etc...
# upload: validation, file format, and etc...
gem 'active_storage_validations', '~> 0.9.2'
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

# 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.

require_relative "config/application"
require_relative 'config/application'

Rails.application.load_tasks
2 changes: 2 additions & 0 deletions app/channels/application_cable/channel.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ApplicationCable
class Channel < ActionCable::Channel::Base
end
Expand Down
2 changes: 2 additions & 0 deletions app/channels/application_cable/connection.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ApplicationCable
class Connection < ActionCable::Connection::Base
end
Expand Down
1 change: 1 addition & 0 deletions app/controllers/account_activations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# account activations controller : handle account activations
class AccountActivationsController < ApplicationController
before_action :logged_in_user, except: [:edit]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/accreditation_school_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# accreditation controller : handle accreditation
class AccreditationSchoolListsController < ApplicationController
before_action :set_accreditation_school_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/achievement_kategori_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# achievement kategori list controller : handle achievement kategori list
class AchievementKategoriListsController < ApplicationController
before_action :set_achievement_kategori_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/achievement_tingkat_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# achievement tingkat list controller : handle achievement tingkat list
class AchievementTingkatListsController < ApplicationController
before_action :set_achievement_tingkat_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/achievements_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# achievements controller : handle achievements
class AchievementsController < ApplicationController
before_action :set_achievement_dropdown_menu, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/address_kabupaten_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# address kabupaten list controller : handle address kabupaten list
class AddressKabupatenListsController < ApplicationController
before_action :set_address_kabupaten_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/address_kecamatan_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# adress kecamatan list controller : handle address kecamatan list
class AddressKecamatanListsController < ApplicationController
before_action :set_address_kecamatan_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/address_province_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# address province list controller : handle address province list
class AddressProvinceListsController < ApplicationController
before_action :set_address_province_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/addresses_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# address controller : handle address
class AddressesController < ApplicationController
before_action :set_address_dropdown_menu, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/all_school_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# all school list controller : handle all school list
class AllSchoolListsController < ApplicationController
before_action :set_all_school_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# application controller : handle application
class ApplicationController < ActionController::Base
before_action :logged_in_user # prevent to write before_action :logged_in_user in every controller
Expand Down
1 change: 1 addition & 0 deletions app/controllers/batch_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# batch list controller : handle batch list
class BatchListsController < ApplicationController
before_action :set_batch_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/extra_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# extra list controller : handle extra list
class ExtraListsController < ApplicationController
before_action :set_extra_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/extras_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# extra controller : handle extra
class ExtrasController < ApplicationController
before_action :set_extra_dropdown_menu, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/high_school_majors_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# high school major controller : handle high school major
class HighSchoolMajorsController < ApplicationController
before_action :set_high_school_major, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/language_degree_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# language degree list controller : handle language degree list
class LanguageDegreeListsController < ApplicationController
before_action :set_language_degree_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/language_name_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# language name list controller : handle language name list
class LanguageNameListsController < ApplicationController
before_action :set_language_name_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/languages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# language controller : handle language
class LanguagesController < ApplicationController
before_action :set_language_dropdown_menu, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/major_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# major list controller : handle major list
class MajorListsController < ApplicationController
before_action :set_major_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/majors_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# major controller : handle major
class MajorsController < ApplicationController
before_action :set_major_dropdown_menu, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/microposts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# microposts controller : handle microposts
class MicropostsController < ApplicationController
# only login user could create and destroy it's post
Expand Down
1 change: 1 addition & 0 deletions app/controllers/organization_degree_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# organization degree list controller : handle organization degree list
class OrganizationDegreeListsController < ApplicationController
before_action :set_organization_degree_list, only: %i[show edit update destroy]
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/organizations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# organization controller : handle organization
class OrganizationsController < ApplicationController
before_action :set_organization_dropdown_menu, only: %i[new create edit update]
Expand Down Expand Up @@ -49,5 +50,4 @@ def current_organization
@organization = current_user.organizations.find_by(id: params[:id])
redirect_to root_url if @organization.nil?
end

end
1 change: 1 addition & 0 deletions app/controllers/parent_education_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# parent education list controller : handle parent education list
class ParentEducationListsController < ApplicationController
before_action :set_parent_education_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/parent_job_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# parent job list controller : handle parent job list
class ParentJobListsController < ApplicationController
before_action :set_parent_job_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/parents_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# parents controller : handle parents data
class ParentsController < ApplicationController
before_action :set_parent_dropdown_menu, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/password_resets_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# password reset controller : handle password reset
class PasswordResetsController < ApplicationController
# Because confirmation of the existence of a valid @user
Expand Down
1 change: 1 addition & 0 deletions app/controllers/personal_gender_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# personal religion list controller : handle personal religion list
class PersonalGenderListsController < ApplicationController
before_action :set_personal_gender_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/personal_religion_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# personal religion list controller : handle personal religion list
class PersonalReligionListsController < ApplicationController
before_action :set_personal_religion_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/personals_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# personal controller : handle personal data
class PersonalsController < ApplicationController
before_action :set_personal_dropdown_menu, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/pmdk_each_score_informations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# pmdk each score controller : handle pmdk each score
class PmdkEachScoreInformationsController < ApplicationController
before_action :current_pmdk_each_score, only: %i[show edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/pmdk_school_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# pmdk school list controller : handle pmdk school list
class PmdkSchoolListsController < ApplicationController
before_action :set_pmdk_school_list, only: %i[show edit update destroy]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# pmdk total score controller : handle pmdk total score
class PmdkTotalScoreInformationsController < ApplicationController
before_action :current_pmdk_total_score, only: %i[edit update show]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# handle sessions (login, logout, etc.) for the application
class SessionsController < ApplicationController
skip_before_action :logged_in_user, only: %i[new create] # skip the logged_in_user method for new and create action
Expand Down
1 change: 1 addition & 0 deletions app/controllers/source_information_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# source information list controller : handle source information list
class SourceInformationListsController < ApplicationController
before_action :set_source_information_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/source_motivation_lists_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# source motivation list controller : handle source motivation list
class SourceMotivationListsController < ApplicationController
before_action :set_source_motivation_list, only: %i[show edit update destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# users controller : handle users
class UsersController < ApplicationController
# prevent use update data or delete without login first
Expand Down
1 change: 1 addition & 0 deletions app/controllers/usm_school_informations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# usm school information controller : handle usm school information
class UsmSchoolInformationsController < ApplicationController
before_action :set_usm_school_dropdown, only: %i[new create edit update]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/utbk_scores_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# utbk_score : handle utbk score data
class UtbkScoresController < ApplicationController
before_action :current_utbk, only: %i[edit update show]
Expand Down
2 changes: 2 additions & 0 deletions app/helpers/account_activations_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

module AccountActivationsHelper
end
2 changes: 2 additions & 0 deletions app/helpers/accreditation_school_lists_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

module AccreditationSchoolListsHelper
end
2 changes: 2 additions & 0 deletions app/helpers/achievement_kategori_lists_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

module AchievementKategoriListsHelper
end
Loading

0 comments on commit 17320c6

Please sign in to comment.