Ruby on Rails 3 licensing plugin
License
mralex/acts_as_licensable
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ActsAsLicensable ================ Provides the ability to add copyright licenses to model objects. Requires Rails 3.0 Install ======= $ rails generate acts-as-licensable:migration $ rake db:migrate $ rake acts-as-licensable:setup (Required for Development and Production environments, installs base set of copyright licenses) Add to any model you wish to make licensable acts_as_licensable Provides ======== * Licensable model instance methods licensed? * Helper methods link_to_licensed(licensable, options{}, html_options{}) Outputs the license name and version. Takes options to customize the license name and version appearance. Options: :short_license Displays short version of name (GNU Public License => GPL) :without_version Hides version number Example: <%= link_to_licensed book %> => <a href="http://creativecommons.org/license/by/3.0" rel="license">CC Attribution 3.0</a> <%= link_to_licensed book, :short_license => true %> => <a ...>CC-BY 3.0</a> <%= link_to_licensed book, :short_license => true, :without_version => true %> => <a ...>CC-BY</a> Thanks ====== Partly based on work by Katipo Communications for acts_as_licensed Plugin structure influenced by acts_as_taggable_on Copyright (c) 2010 Alex Roberts, released under the MIT license
About
Ruby on Rails 3 licensing plugin
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published