Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Removed duplicate recently_activated? action #26

Open
wants to merge 2 commits into from

1 participant

@OmriShiv

Just happened to notice a duplicate action. Please feel free to pull it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 24, 2010
  1. @OmriShiv
Commits on Jan 14, 2011
  1. @OmriShiv
This page is out of date. Refresh to see the latest.
View
3  generators/authenticated/templates/migration.rb
@@ -2,7 +2,8 @@ class <%= migration_name %> < ActiveRecord::Migration
def self.up
create_table "<%= table_name %>", :force => true do |t|
t.string :login, :limit => 40
- t.string :name, :limit => 100, :default => '', :null => true
+ t.string :first, :limit => 100, :default => '', :null => true
+ t.string :last, :limit => 100, :default => '', :null => true
t.string :email, :limit => 100
t.string :crypted_password, :limit => 40
t.string :salt, :limit => 40
View
5 generators/authenticated/templates/model.rb
@@ -46,10 +46,7 @@ def active?
# the existence of an activation code means they have not activated yet
activation_code.nil?
end
-
- def recently_activated?
- @activated
- end<% end %>
+ <% end %>
# Authenticates a user by their login name and unencrypted password. Returns the user or nil.
#
Something went wrong with that request. Please try again.