Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Collection of otherwise totally unrelated datamapper code snippets - Want commit access? Just send me a message

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 1005.rb
Octocat-spinner-32 1007.rb
Octocat-spinner-32 1011.rb
Octocat-spinner-32 1016.rb
Octocat-spinner-32 1019.rb
Octocat-spinner-32 1020.rb
Octocat-spinner-32 1021.rb
Octocat-spinner-32 1026.rb
Octocat-spinner-32 1028.rb
Octocat-spinner-32 1031.rb
Octocat-spinner-32 1036.rb
Octocat-spinner-32 1062.rb
Octocat-spinner-32 1076.rb
Octocat-spinner-32 1181.rb
Octocat-spinner-32 1202.rb
Octocat-spinner-32 1208.rb
Octocat-spinner-32 1225.rb
Octocat-spinner-32 1235.rb
Octocat-spinner-32 1245.rb
Octocat-spinner-32 1249.rb
Octocat-spinner-32 584.rb
Octocat-spinner-32 590.rb
Octocat-spinner-32 619.rb
Octocat-spinner-32 799.rb
Octocat-spinner-32 853.rb
Octocat-spinner-32 854.rb
Octocat-spinner-32 859.rb
Octocat-spinner-32 900.rb
Octocat-spinner-32 910.rb
Octocat-spinner-32 911.rb
Octocat-spinner-32 941.rb
Octocat-spinner-32 949.rb
Octocat-spinner-32 954.rb
Octocat-spinner-32 968.rb
Octocat-spinner-32 977.rb
Octocat-spinner-32 980.rb
Octocat-spinner-32 986.rb
Octocat-spinner-32 989.rb
Octocat-spinner-32 991.rb
Octocat-spinner-32 992.rb
Octocat-spinner-32 993.rb
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 address.rb
Octocat-spinner-32 advany.rb
Octocat-spinner-32 aggr.rb
Octocat-spinner-32 angelic.rb
Octocat-spinner-32 ashley.rb
Octocat-spinner-32 auto_upgrade.rb
Octocat-spinner-32 balboa.rb
Octocat-spinner-32 balint.rb
Octocat-spinner-32 big_decimal.rb
Octocat-spinner-32 blabla.rb
Octocat-spinner-32 bug.rb
Octocat-spinner-32 constraints-problem.rb
Octocat-spinner-32 constraints.rb
Octocat-spinner-32 count.rb
Octocat-spinner-32 dancer.rb
Octocat-spinner-32 datamapper_site_spidr.rb
Octocat-spinner-32 deepfryed.rb
Octocat-spinner-32 default_repo_test.rb
Octocat-spinner-32 default_scope.rb
Octocat-spinner-32 dm-association-problem.rb
Octocat-spinner-32 dm-bot.rb
Octocat-spinner-32 dm-features.rb
Octocat-spinner-32 dm-serializer.rb
Octocat-spinner-32 dm_parameter_sanitization.rb
Octocat-spinner-32 dm_property_sharing.rb
Octocat-spinner-32 do_logs.rb
Octocat-spinner-32 dubrider.rb
Octocat-spinner-32 example.rb
Octocat-spinner-32 fasttest.rb
Octocat-spinner-32 fk_tests.rb
Octocat-spinner-32 flag.rb
Octocat-spinner-32 freak.rb
Octocat-spinner-32 freakguard.rb
Octocat-spinner-32 holoway.rb
Octocat-spinner-32 interesting-dm-core-specs.rb
Octocat-spinner-32 jacques.rb
Octocat-spinner-32 jpr5.rb
Octocat-spinner-32 json_fails_dirty.rb
Octocat-spinner-32 ken.rb
Octocat-spinner-32 krunar.rb
Octocat-spinner-32 kung_fu_mike.rb
Octocat-spinner-32 lala.rb
Octocat-spinner-32 lambda.rb
Octocat-spinner-32 localizable.rb
Octocat-spinner-32 mattetti.rb
Octocat-spinner-32 metaclass-remixable.rb
Octocat-spinner-32 migrations_test.rb
Octocat-spinner-32 mykhal.rb
Octocat-spinner-32 namelessjon.rb
Octocat-spinner-32 narretgrez.rb
Octocat-spinner-32 new_ticket.rb
Octocat-spinner-32 oranj.rb
Octocat-spinner-32 ragmaanir.rb
Octocat-spinner-32 remixable.rb
Octocat-spinner-32 remixable_api.rb
Octocat-spinner-32 robholland.rb
Octocat-spinner-32 roovo.rb
Octocat-spinner-32 saleshub.rb
Octocat-spinner-32 save_destroy.rb
Octocat-spinner-32 scroufal.rb
Octocat-spinner-32 setup_block.rb
Octocat-spinner-32 sinatra-test.rb
Octocat-spinner-32 slaskis.rb
Octocat-spinner-32 slow.rb
Octocat-spinner-32 snip.rb
Octocat-spinner-32 somebee.rb
Octocat-spinner-32 sparrow.rb
Octocat-spinner-32 spec-idioms.rb
Octocat-spinner-32 specunit.rb
Octocat-spinner-32 sr.rb
Octocat-spinner-32 srmtm.rb
Octocat-spinner-32 stef.rb
Octocat-spinner-32 storage_names.rb
Octocat-spinner-32 test-remixable.rb
Octocat-spinner-32 test.rb
Octocat-spinner-32 test_dm_constraints.rb
Octocat-spinner-32 tpitale.rb
Octocat-spinner-32 transactions.rb
Octocat-spinner-32 validatable.rb
Octocat-spinner-32 validation.rb
Octocat-spinner-32 validations.rb


This is a collection of snippets that mostly deal with (quite possibly already resolved) bugs in dm. Some of them have nothing to do with bugs, and are just pieces of code that maybe were discussed on IRC, or I wrote them for some other reason I don't remember anymore. This is really nothing useful in itself, but it's datamapper stuff all the way, so maybe someone discovers something he/she didn't know before.

When the output from running a script is pasted into the script file itself, don't trust it! It might be from a rather old version of datamapper so be sure to run it with your latest copy of dm to see wether it will do what it says that it does.

I will use it from now on to dump all my unrelated dm code snippets that I write for whatever reason. Maybe it will even contain common model definitions I (and others) use regularly, who knows. The other nice thing is that I added a Gemfile, which will make it much easier for me to test stuff.

Feel free to send me a pull request when you think that you have an interesting snippet of datamapper code to share. I'm planning to clean this up at some point and provide some kind of organization that will make it easier to find/browse snippets.

Something went wrong with that request. Please try again.