Skip to content
This repository

Removed duplicate recently_activated? action #26

Open
wants to merge 2 commits into from

1 participant

OmriShiv
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

Showing 2 unique commits by 1 author.

Dec 24, 2010
OmriShiv Removed duplicate recently_activated? action 12951fb
Jan 14, 2011
OmriShiv Changed name to first and last 209ac23
This page is out of date. Refresh to see the latest.
3  generators/authenticated/templates/migration.rb
@@ -2,7 +2,8 @@ class <%= migration_name %> < ActiveRecord::Migration
2 2
   def self.up
3 3
     create_table "<%= table_name %>", :force => true do |t|
4 4
       t.string   :login,                     :limit => 40
5  
-      t.string   :name,                      :limit => 100, :default => '', :null => true
  5
+      t.string   :first,                      :limit => 100, :default => '', :null => true
  6
+      t.string   :last,                      :limit => 100, :default => '', :null => true
6 7
       t.string   :email,                     :limit => 100
7 8
       t.string   :crypted_password,          :limit => 40
8 9
       t.string   :salt,                      :limit => 40
5  generators/authenticated/templates/model.rb
@@ -46,10 +46,7 @@ def active?
46 46
     # the existence of an activation code means they have not activated yet
47 47
     activation_code.nil?
48 48
   end
49  
-  
50  
-  def recently_activated?
51  
-    @activated
52  
-  end<% end %>
  49
+  <% end %>
53 50
 
54 51
   # Authenticates a user by their login name and unencrypted password.  Returns the user or nil.
55 52
   #
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.