lib/ar_fixtures.rb
# Writes content of this table to db/table_name.yml, or the specified file.
#
# Writes all content by default, but can be limited.
Writes content of this table to db/table_name.yml, or the specified file.
Writes all content by default, but can be limited.
Writes content of this table to db / table_name . yml or the specified file . Writes all content by default but can be limited .
def dump_to_file(path=nil, limit=nil)
      opts = {}
      opts[:limit] = limit if limit
      path ||= "db/#{table_name}.yml"
      write_file(File.expand_path(path, RAILS_ROOT), self.find(:all, opts).to_yaml)
    end
def dump_to_file ( path = nil , limit = nil ) opts = { } opts [ :limit ] = limit if limit path ||= "db/#{table_name}.yml" write_file ( File . expand_path ( path , RAILS_ROOT ) , self . find ( :all , opts ) . to_yaml ) end
Writes content of this table to db/table_name.yml, or the specified file.
Writes content of this table to db / table_name . yml or the specified file .
path
<not_specific>
limit
<not_specific>