Changed gemspec file to not be dependent on rails 3.1 and just work with 3.0; Applied patch on active record base method so that default_scope can take lambda