Skip to content

Commit

Permalink
syntax fix in README
Browse files Browse the repository at this point in the history
  • Loading branch information
dnagir committed Dec 22, 2011
1 parent 898f685 commit 071fcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -105,7 +105,7 @@ class @Page extends ko.Model
@presence 'name', message: 'give me a name, yo!' @presence 'name', message: 'give me a name, yo!'


# Conditional validation - access model using `this` # Conditional validation - access model using `this`
@presence 'name', if: -> @persisted() @presence 'name', only: -> @persisted(), except: -> @id() > 5


# Custom inline validation # Custom inline validation
@custom 'name', (page) -> @custom 'name', (page) ->
Expand Down

0 comments on commit 071fcc1

Please sign in to comment.