Skip to content

Commit

Permalink
ページ作成機能:フロント:rails3系でも動くように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
appirits-ymatsumoto committed Jun 8, 2015
1 parent 97d0d28 commit 7f519b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/controllers/comable/pages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Comable
class PagesController < Comable::ApplicationController
def show
@page = Comable::Page.find_by(slug: params[:slug])
@page = Comable::Page.where(slug: params[:slug]).first
fail unless @page && (@page.opened? || preview?)
end

Expand Down

0 comments on commit 7f519b2

Please sign in to comment.