Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reorder examples.

  • Loading branch information...
commit f0ac29c41f244005d68a0bb0d75e58702c64a7e8 1 parent 4d19e79
@postmodern authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.md
View
10 README.md
@@ -35,11 +35,14 @@ A DataMapper plugin for adding predefined resources to Models.
end
+ License.predefined
+ # => [:gpl2, :mit]
+
License.predefined?(:gpl2)
# => true
- License.predefined
- # => [:gpl2, :mit]
+ 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">
@@ -47,9 +50,6 @@ A DataMapper plugin for adding predefined resources to Models.
License.first_or_predefined(: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
Please sign in to comment.
Something went wrong with that request. Please try again.