This repository has been archived by the owner. It is now read-only.
Browse files

Adding language specs to the code snippets in sequel plugins.

  • Loading branch information...
jdunphy committed Jan 24, 2009
1 parent dafc582 commit db64d75a10d733e30e921f9648c4c72343fa99e6
@@ -16,6 +16,7 @@ As the name would indicate, sequel\_timestamped will update standard timestamp c
class Note < Sequel::Model
is :timestamped
+{:lang=ruby html_use_syntax=true}
If the model has `created_at` and `updated_at` timestamp columns, they will be updated as expected.
@@ -35,6 +36,7 @@ Not-naughty is a gem that provides an easily extensible validation framework.
length_of :login, :minimum => 5
+{:lang=ruby html_use_syntax=true}
Here's the [sequel\_notnaughty source][], and the [not-naughty source][].
@@ -53,6 +55,7 @@ The plugin adds functionality to Sequel's associations to handle these situation
is :polymorphic
many_to_one :attachable, :polymorphic => true
+{:lang=ruby html_use_syntax=true}
This will create a transparent polymorphic relationship between the Note and its Assets.

0 comments on commit db64d75

Please sign in to comment.