Skip to content

Commit

Permalink
Merge pull request #31 from senny/readme_example_typo_fix
Browse files Browse the repository at this point in the history
fix a typo in the README to showoff the default values
  • Loading branch information
solnic committed Nov 14, 2011
2 parents 64c7eae + 4bb86d8 commit 123ccd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Page

attribute :title, String
attribute :views, Integer, :default => 0
attribute :slug, String, :default => lambda { |post, attribute| post.title.downcase.gsub(' ', '-') }
attribute :slug, String, :default => lambda { |page, attribute| page.title.downcase.gsub(' ', '-') }
end

page = Page.new :title => 'Virtus Is Awesome'
Expand Down

0 comments on commit 123ccd0

Please sign in to comment.