All Fixtures
def self.all_fixtures(options={}) fixtures Dir.entries(RAILS_ROOT + '/test/fixtures').select {|f| f =~ /^\w+/ }.collect {|f| f.sub!(/.yml$/,'').to_sym }.reject {|i| [*options[:except]].include? i } end
12155 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Jeffrey Hardy http://quotedprintable.com
def self.all_fixtures(options={}) fixtures Dir.entries(RAILS_ROOT + '/test/fixtures').select {|f| f =~ /^\w+/ }.collect {|f| f.sub!(/.yml$/,'').to_sym }.reject {|i| [*options[:except]].include? i } end