Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
m0wfo committed Nov 4, 2010
1 parent 1adf9d1 commit 9500390
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ Solves a common pattern in models, i.e. specifying how unique identifiers are ge

In your ActiveRecord model:

has_identifier(:column_name) do
SecureRandom.hex(16)
class Authorisation < Activerecord::Base

has_identifier(:column_name) { SecureRandom.hex(16) }

end

or
Expand Down

0 comments on commit 9500390

Please sign in to comment.