Permalink
Browse files

Merged pull request #2 from adamlipka/master.

proper generator name
  • Loading branch information...
2 parents 7f72360 + cdcb42e commit 89135dbb72d17f93430b39215d3045975c25397a @grzegorzkazulak grzegorzkazulak committed Apr 26, 2011
View
@@ -1,4 +1,4 @@
-Redeemable
+Redeem
==========
This gem provides redeem capability for ActiveRecord models. It can be used for coupons, tickets, etc.
@@ -19,7 +19,7 @@ code:string, uses:integer, issued_at:datetime, expires_at:datetime, created_at:d
### Generate the model
- rails generate redeemable ClassName attributes
+ rails generate redeem ClassName attributes
Generator automatically adds the following attributes to the model:
@@ -1,6 +1,6 @@
require 'rails/generators'
-class RedeemableGenerator < Rails::Generators::Base #:nodoc:
+class RedeemGenerator < Rails::Generators::Base #:nodoc:
include Rails::Generators::Migration
argument :class_name, :type => :string, :default => "User"

0 comments on commit 89135db

Please sign in to comment.