Sha256: 98c64c19496c6a16058ff6b85d039643aabe301475ff18f388b9ecb7f503d901

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

class Rails::Application
  def load_models!
    load_path = 'app/models'

    matcher = /\A#{Regexp.escape(load_path.to_s)}\/(.*)\.rb\Z/

    Dir.glob("#{load_path}/**/*.rb").sort.each do |file|
      require_dependency file.sub(matcher, '\1')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simpleadmin-1.4.0 lib/simpleadmin/application.rb