Improve how ruby features are required
* Don't require bcrypt explicitly (done by bundler); * Regroup require calls in application configuration.
This commit is contained in:
parent
16cccc2a23
commit
b13efc5a4c
@ -1,5 +1,3 @@
|
||||
require 'fileutils'
|
||||
|
||||
class Sound < ActiveRecord::Base
|
||||
belongs_to :track
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
require 'bcrypt'
|
||||
|
||||
class User < ActiveRecord::Base
|
||||
include BCrypt
|
||||
|
||||
|
@ -12,6 +12,8 @@ require 'action_view/railtie'
|
||||
# you've limited to :test, :development, or :production.
|
||||
Bundler.require(*Rails.groups)
|
||||
|
||||
require 'fileutils'
|
||||
|
||||
module Scube
|
||||
class Application < Rails::Application
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
|
@ -1,5 +1,3 @@
|
||||
require 'bcrypt'
|
||||
|
||||
module BCrypt
|
||||
class Engine
|
||||
remove_const :DEFAULT_COST
|
||||
|
Loading…
x
Reference in New Issue
Block a user