[Ruby] Using ActiveRecord outside Rails

Jeffrey Hulten jhulten at gmail.com
Tue Oct 3 14:41:51 PDT 2006


I turned it off in the test task.

    desc "Run tests on models"
    Rake::TestTask.new('models') do |test|
        test.libs = [ LIB_ROOT, MODEL_ROOT ]
        test.verbose = true
        test.warning = false
        test.test_files = FileList[File.join(LIB_ROOT, 'test',
'test_model_*.rb')]
    end

On 10/3/06, Mike Mondragon <mikemondragon at gmail.com> wrote:
>
> How do you turn off warnings in ActiveRecord::Base?  Its not clearly
> documented (to me):
> http://rubyonrails.org/api/classes/ActiveRecord/Base.html
> Or is it a flag that is passed to the ruby command?
> Thanks
> Mike
>
> On 10/2/06, Jeffrey Hulten <jhulten at gmail.com> wrote:
> >
> > Turning off the warnings unmasked the real problem, an issue with access
> > to
> > the correct ports from my home office.  Thanks!
> >
> > So, note to self.  ActiveRecord warnings are mostly useless and may mask
> > the
> > real problem.
> >
> > --
> > Jeffrey Hulten
> > jhulten at gmail.com
> >
> _______________________________________________
> Ruby at zenspider.com
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
>



-- 
Jeffrey Hulten
jhulten at gmail.com


More information about the Ruby mailing list