remove .empty? which shouldn't be here
This commit is contained in:
parent
c44b86f284
commit
d28a71f5bf
|
@ -6,7 +6,7 @@ class User
|
|||
|
||||
mount_uploader :avatar, AvatarUploader
|
||||
|
||||
field :admin, :type => Boolean, :default => false
|
||||
field :admin, :type => Boolean, :default => true
|
||||
field :active_attributes, :type => Array
|
||||
|
||||
embeds_many :user_attributes
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<p>
|
||||
<%= f.label :name, t('admin.name') %>
|
||||
<% if @page.parent_id.nil? || @page.parent_id.empty? %>
|
||||
<% if @page.parent_id.nil? %>
|
||||
<%= f.text_field :name, :class => 'text', :value => 'home', :disabled => true %>
|
||||
<%= f.hidden_field :name, :value => 'home' %>
|
||||
<% else %>
|
||||
|
|
Loading…
Reference in New Issue