Permalink
Browse files

Updated the README.

  • Loading branch information...
1 parent 655381c commit d5440fe6eb16afd3971165d719c6c11c7f519267 @postmodern committed Jul 25, 2011
Showing with 10 additions and 9 deletions.
  1. +10 −9 README.md
View
@@ -34,21 +34,22 @@ A DataMapper plugin for adding predefined resources to Models.
end
- Licence.gpl2
- # => #<Licence: id: 1, name: "GPL-2", url: "http://www.gnu.org/copyleft/gpl.html">
-
- Licence.predefined_resource(:mit)
- # => #<Licence: id: 2, name: "MIT">
-
- License.predefined_resource_with(:name => 'GPL-2')
- # => #<License: id: 1, name: "GPL-2", url: "http://www.gnu.org/copyleft/gpl.html">
-
+
License.predefined?(:gpl2)
# => true
License.predefined
# => [:gpl2, :mit]
+ Licence.predefined_resource(:mit)
+ # => #<Licence: id: 2, name: "MIT">
+
+ License.first_predefined_resource(:name => 'GPL-2')
+ # => #<License: id: 1, name: "GPL-2", url: "http://www.gnu.org/copyleft/gpl.html">
+
+ Licence.gpl2
+ # => #<Licence: id: 1, name: "GPL-2", url: "http://www.gnu.org/copyleft/gpl.html">
+
## Requirements
* [dm-core](http://github.com/datamapper/dm-core/) ~> 1.0

0 comments on commit d5440fe

Please sign in to comment.