Sha256: 0f1ff0cef671b15747da24978ffce50c418cd2d47c15b1d5ea81dbb29ba6ddc7
Contents?: true
Size: 641 Bytes
Versions: 10
Compression:
Stored size: 641 Bytes
Contents
module Support class << self def get_model from Object.const_get(:"#{from.humanize}") end def file_tab model_name,*args,&block from=Support.get_model(model_name) Lolita::Configuration::FilesTab.new(from.lolita.dbi,*args,&block) end def get_file(filename) File.open(File.expand_path("test_orm/files/"+filename.to_s)) end def load_rails_application require 'rails' require 'lolita' require 'lolita-file-upload/rails' require File.expand_path("test_orm/rails/config/enviroment") end end end at_exit do FileUtils.rm_rf(File.expand_path("uploads")) end
Version data entries
10 entries across 10 versions & 1 rubygems