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
|
class Sound < ActiveRecord::Base
|
||||||
belongs_to :track
|
belongs_to :track
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
require 'bcrypt'
|
|
||||||
|
|
||||||
class User < ActiveRecord::Base
|
class User < ActiveRecord::Base
|
||||||
include BCrypt
|
include BCrypt
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ require 'action_view/railtie'
|
|||||||
# you've limited to :test, :development, or :production.
|
# you've limited to :test, :development, or :production.
|
||||||
Bundler.require(*Rails.groups)
|
Bundler.require(*Rails.groups)
|
||||||
|
|
||||||
|
require 'fileutils'
|
||||||
|
|
||||||
module Scube
|
module Scube
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Settings in config/environments/* take precedence over those specified here.
|
# Settings in config/environments/* take precedence over those specified here.
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
require 'bcrypt'
|
|
||||||
|
|
||||||
module BCrypt
|
module BCrypt
|
||||||
class Engine
|
class Engine
|
||||||
remove_const :DEFAULT_COST
|
remove_const :DEFAULT_COST
|
||||||
|
Loading…
x
Reference in New Issue
Block a user