Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

proper generator name

  • Loading branch information...
commit cdcb42e91bad729bae9fc65e1c88b8993a078996 1 parent e1f5013
Adam Lipka authored
View
4 README.md
@@ -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:
View
2  lib/generators/redeemable/redeemable_generator.rb → lib/generators/redeem/redeem_generator.rb
@@ -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"
View
0  lib/generators/redeemable/templates/migration.rb → lib/generators/redeem/templates/migration.rb
File renamed without changes
View
0  ...generators/redeemable/templates/model_template.rb → lib/generators/redeem/templates/model_template.rb
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.