Skip to content

Commit

Permalink
remove unecessary password field
Browse files Browse the repository at this point in the history
  • Loading branch information
progressbarsk committed Jul 30, 2011
1 parent 9bc0beb commit 7995b63
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion app/models/mailing_list.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class MailingList < ActiveRecord::Base

acts_as_indexed :fields => [:email, :password]
acts_as_indexed :fields => [:email]

validates :email, :presence => true, :uniqueness => true

Expand Down
5 changes: 0 additions & 5 deletions app/views/admin/mailing_lists/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
<%= f.text_field :email, :class => 'larger widest' -%>
</div>

<div class='field'>
<%= f.label :password -%>
<%= f.text_field :password -%>
</div>

<div class='field'>
<%= f.label :general -%>
<%= f.check_box :general, :checked => @mailing_list[:general] -%>
Expand Down
6 changes: 0 additions & 6 deletions app/views/mailing_lists/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<%=raw @mailing_list.email %>
</p>
</section>
<section>
<h1>Password</h1>
<p>
<%=raw @mailing_list.password %>
</p>
</section>
<section>
<h1>General</h1>
<p>
Expand Down

0 comments on commit 7995b63

Please sign in to comment.