Navigation Menu

Skip to content

Commit

Permalink
Adding language specs to the code snippets in sequel plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunphy committed Jan 24, 2009
1 parent dafc582 commit db64d75
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -16,6 +16,7 @@ As the name would indicate, sequel\_timestamped will update standard timestamp c
class Note < Sequel::Model
is :timestamped
end
{:lang=ruby html_use_syntax=true}

If the model has `created_at` and `updated_at` timestamp columns, they will be updated as expected.

Expand All @@ -35,6 +36,7 @@ Not-naughty is a gem that provides an easily extensible validation framework.
length_of :login, :minimum => 5
end
end
{:lang=ruby html_use_syntax=true}

Here's the [sequel\_notnaughty source][], and the [not-naughty source][].

Expand All @@ -53,6 +55,7 @@ The plugin adds functionality to Sequel's associations to handle these situation
is :polymorphic
many_to_one :attachable, :polymorphic => true
end
{:lang=ruby html_use_syntax=true}

This will create a transparent polymorphic relationship between the Note and its Assets.

Expand Down

0 comments on commit db64d75

Please sign in to comment.