This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -content_for('body') do | |
| .messages= label_view :my_label, :tag => 'h1', :inner_html => 'Hello World!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% content_for('body') do %> | |
| <div class="messages"> | |
| <img class="logo" src="<%= static_url('images/sproutcore-logo') %>" /> | |
| <div class="message"> | |
| <%= label_view :my_label, :tag => 'h1', :inner_html => 'Hello World!' %> | |
| </div> | |
| </div> | |
| <% end %> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def update_and_reload!(attributes) | |
| update!(attributes) | |
| if identity_map.any? | |
| query = @key_properties.zip(identity_map.keys.transpose).to_hash.merge(attributes) | |
| model.all(query).reload(:fields => attributes.keys) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MacPro:dm-more sindre$ rake spec | |
| (in /Users/sindre/Work/_oss/datamapper/dm-more) | |
| /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. | |
| (in /Users/sindre/Work/_oss/datamapper/dm-more/dm-adjust) | |
| /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. | |
| (in /Users/sindre/Work/_oss/datamapper/dm-more/dm-serializer) | |
| /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. | |
| ** README.txt is missing or in the wrong format for auto-intuiting. | |
| run `sow blah` and look at its text files | |
| (in /Users/sindre/Work/_oss/datamapper/dm-more/dm-validations) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rake | |
| (in /Users/sindre/Work/_oss/datamapper/dm-more/dm-adjust) | |
| /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. | |
| rm -r coverage | |
| 37.7% 7 file(s) 171 Lines 114 LOC | |
| /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters/data_objects_adapter.rb:12: superclass mismatch for class DataObjectsAdapter (TypeError) | |
| from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
| from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
| from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters/sqlite3_adapter.rb:1 | |
| from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class User | |
| include DataMapper::Resource | |
| property :id, Serial | |
| property :name, String | |
| end | |
| class Event | |
| include DataMapper::Resource | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Location | |
| include DataMapper::Resource | |
| property :id, Serial | |
| property :type, Discriminator | |
| property :code, String, :index => true | |
| property :name, String, :index => true, :length => 255 | |
| property :tags, Text, :lazy => false | |
| property :description, Text, :lazy => false | |
| property :population, Integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| order = Order.new(:company => company) | |
| order.events >> | |
| Wed, 04 Feb 2009 12:29:46 GMT ~ debug ~ (0.000211) SELECT `id`, `type`, `order_id`, `details`, `body` FROM `events` WHERE `order_id` IS NULL ORDER BY `id` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'dm-core' | |
| DataMapper.setup(:default, "mysql://root@localhost/dm_core_test") | |
| class Order | |
| include DataMapper::Resource | |
| property :id, Serial | |
| has n, :events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> *AnySTIInheritedModel*.all | |
| ~ Don't know how to quote Set objects (#<Set: {*AnySTIInheritedModel*}>) | |
| RuntimeError: Don't know how to quote Set objects (#<Set: {*AnySTIInheritedModel*}>) | |
| from /usr/local/lib/ruby/gems/1.8/gems/data_objects-0.9.12/lib/data_objects/quoting.rb:53:in `quote_value' | |
| from /usr/local/lib/ruby/gems/1.8/gems/data_objects-0.9.12/lib/data_objects/quoting.rb:27:in `escape_sql' | |
| from /usr/local/lib/ruby/gems/1.8/gems/data_objects-0.9.12/lib/data_objects/quoting.rb:26:in `gsub!' | |
| from /usr/local/lib/ruby/gems/1.8/gems/data_objects-0.9.12/lib/data_objects/quoting.rb:26:in `escape_sql' | |
| from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters/data_objects_adapter.rb:66:in `execute_reader' | |
| from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters/data_objects_adapter.rb:66:in `read_many' | |
| from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.10.0/lib/dm-core/adapters/data_objects_adapter.rb:204:in `with_connection' |
OlderNewer