lib/generators/invitation/install/install_generator.rb in invitation-0.4 vs lib/generators/invitation/install/install_generator.rb in invitation-0.4.1
- old
+ new
@@ -24,31 +24,12 @@
puts "Exiting: the model class you specified, #{options[:model]}, is not found."
exit 1
end
end
- # def verify_invitable
- # return unless options[:invitable]
- # options[:invitable].each do |invitable|
- # unless File.exists?(invitable_file_path invitable)
- # puts "Exiting: the model class you specified to make invitable, #{invitable}, is not found."
- # exit 1
- # end
- # end
- # end
-
def inject_into_user_model
inject_into_class model_path, model_class_name, " include Invitation::User\n\n"
end
-
- # def inject_into_invitables
- # return unless options[:invitable]
- # options[:invitable].each do |invitable|
- # path = invitable_file_path(invitable)
- # class_name = invitable.classify
- # inject_into_class path, class_name, " include Invitation::Invitable\n\n"
- # end
- # end
def copy_migration_files
copy_migration 'create_invites.rb'
end