Method: Wings::Model::SQLite.all
- Defined in:
- lib/wings/sqlite_model.rb
.all ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/wings/sqlite_model.rb', line 38 def self.all all_rows = db.execute " SELECT * FROM \#{table};\n" all_rows.map do |row| data = Hash[schema.keys.zip(row)] self.new(data) end end |