Skip to content

Commit

Permalink
Removed the xhr layout checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bogan committed Nov 13, 2009
1 parent a66752a commit c2b837a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application.rb
Expand Up @@ -107,7 +107,7 @@ def has_auth?
@interview = Interview.first(:slug => slug)
raise not_found unless @interview

haml :'interviews/edit', :layout => !request.xhr?
haml :'interviews/edit'
end

post '/interviews/:slug/edit/?' do |slug|
Expand All @@ -119,7 +119,7 @@ def has_auth?
if @interview.update(params)
redirect "/interviews/#{@interview.slug}/"
else
haml :'interviews/edit', :layout => !request.xhr?
haml :'interviews/edit'
end
end

Expand Down Expand Up @@ -154,7 +154,7 @@ def has_auth?
@ware = Ware.first(:slug => slug)
raise not_found unless @ware

haml :'wares/edit', :layout => !request.xhr?
haml :'wares/edit'
end

post '/wares/:slug/edit/?' do |slug|
Expand All @@ -166,6 +166,6 @@ def has_auth?
if @ware.update(params)
redirect "/"
else
haml :'wares/edit', :layout => !request.xhr?
haml :'wares/edit'
end
end

0 comments on commit c2b837a

Please sign in to comment.