-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
939828b
commit e50f58c
Showing
15 changed files
with
80 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | ||
load Gem.bin_path("bundler", "bundle") | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
load Gem.bin_path('bundler', 'bundle') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env ruby | ||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'cap' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
require 'pathname' | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", | ||
Pathname.new(__FILE__).realpath) | ||
|
||
require 'rubygems' | ||
require 'bundler/setup' | ||
|
||
load Gem.bin_path('capistrano', 'cap') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
APP_PATH = File.expand_path("../config/application", __dir__) | ||
require_relative "../config/boot" | ||
require "rails/commands" | ||
APP_PATH = File.expand_path('../config/application', __dir__) | ||
require_relative '../config/boot' | ||
require 'rails/commands' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
require_relative "../config/boot" | ||
require "rake" | ||
require_relative '../config/boot' | ||
require 'rake' | ||
Rake.application.run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Version of your assets, change this if you want to expire all your assets. | ||
Rails.application.config.assets.version = "1.0" | ||
Rails.application.config.assets.version = '1.0' | ||
|
||
# Add additional assets to the asset load path. | ||
# Rails.application.config.assets.paths << Emoji.images_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
# The secret key used by Devise. Devise uses this key to generate | ||
# random tokens. Changing this key will render invalid all existing | ||
# confirmation, reset password and unlock tokens in the database. | ||
config.secret_key = "314feb2dc06c4ff725d7c53e4d9d9aeda03dc2b7aa9ee1a9b74fbb48991c3dfb937165d752108c6406942f40ac4cf7786d71cf30869eeece2e8d9be1a5c3b1cb" | ||
config.secret_key = '314feb2dc06c4ff725d7c53e4d9d9aeda03dc2b7aa9ee1a9b74fbb48991c3dfb937165d752108c6406942f40ac4cf7786d71cf30869eeece2e8d9be1a5c3b1cb' | ||
|
||
# ==> Mailer Configuration | ||
# Configure the e-mail address which will be shown in Devise::Mailer, | ||
# note that it will be overwritten if you use your own mailer class | ||
# with default "from" parameter. | ||
config.mailer_sender = ENV["MAILER_SENDER"] || "[email protected]" | ||
config.mailer_sender = ENV['MAILER_SENDER'] || '[email protected]' | ||
|
||
# Configure the class responsible to send e-mails. | ||
# config.mailer = 'Devise::Mailer' | ||
|
@@ -19,7 +19,7 @@ | |
# Load and configure the ORM. Supports :active_record (default) and | ||
# :mongoid (bson_ext recommended) by default. Other ORMs may be | ||
# available as additional gems. | ||
require "devise/orm/active_record" | ||
require 'devise/orm/active_record' | ||
|
||
# ==> Configuration for any authentication mechanism | ||
# Configure which keys are used when authenticating a user. The default is | ||
|
@@ -41,12 +41,12 @@ | |
# Configure which authentication keys should be case-insensitive. | ||
# These keys will be downcased upon creating or modifying a user and when used | ||
# to authenticate or find a user. Default is :email. | ||
config.case_insensitive_keys = [:email] | ||
config.case_insensitive_keys = [ :email ] | ||
|
||
# Configure which authentication keys should have whitespace stripped. | ||
# These keys will have whitespace before and after removed upon creating or | ||
# modifying a user and when used to authenticate or find a user. Default is :email. | ||
config.strip_whitespace_keys = [:email] | ||
config.strip_whitespace_keys = [ :email ] | ||
|
||
# Tell if authentication through request.params is enabled. True by default. | ||
# It can be set to an array that will enable params authentication only for the | ||
|
@@ -123,7 +123,7 @@ | |
config.reconfirmable = true | ||
|
||
# Defines which key will be used when confirming an account | ||
config.confirmation_keys = [:email] | ||
config.confirmation_keys = [ :email ] | ||
|
||
# ==> Configuration for :rememberable | ||
# The time the user will be remembered without asking for credentials again. | ||
|
@@ -160,7 +160,7 @@ | |
config.lock_strategy = :failed_attempts | ||
|
||
# Defines which key will be used when locking and unlocking an account | ||
config.unlock_keys = [:email] | ||
config.unlock_keys = [ :email ] | ||
|
||
# Defines which strategy will be used to unlock an account. | ||
# :email = Sends an unlock link to the user email | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Ransack.configure do |config| | ||
config.add_predicate "unaccent_cont", | ||
arel_predicate: "matches", | ||
config.add_predicate 'unaccent_cont', | ||
arel_predicate: 'matches', | ||
formatter: proc { |s| ActiveSupport::Inflector.transliterate("%#{s}%") }, | ||
validator: proc { |s| s.present? }, | ||
compounds: true, | ||
type: :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
Rails.application.config.session_store :cookie_store, key: "_timeoverflow_session" | ||
Rails.application.config.session_store :cookie_store, key: '_timeoverflow_session' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
schedule_file = 'config/schedule.yml' | ||
|
||
if File.exist?(schedule_file) && Sidekiq.server? | ||
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ADMINS = ENV["ADMINS"].to_s.split | ||
ADMINS = ENV["ADMINS"].to_s.split |