require File.expand_path('../../../lib/random', __FILE__)

class User < ActiveRecord::Base
  has_secure_password

  before_validation { |user| user.password = Random.password if user.password.nil? }
  validates_presence_of :email
end

require File.expand_path('../../../lib/random', __FILE__)

class User < ActiveRecord::Base
  has_secure_password

  before_validation { |user| user.password = Random.password if user.password.nil? }
  validates_presence_of :email
end

app_model = File.join Rails.root, 'app/models/user.rb'
require app_model if File.exists? app_model

Load the model from the app if present.
Load the model from the app if present.
