This commit is contained in:
r888888888
2013-11-20 15:45:03 -08:00
parent ce55d57728
commit 231993b98e
11 changed files with 177 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
class Mobile::PostsController < ApplicationController
layout "mobile"
before_filter :set_mobile_mode
def index
@post_set = PostSets::Post.new(params[:tags], params[:page], CurrentUser.user.per_page, false)
@posts = @post_set.posts
end
def show
@post = Post.find(params[:id])
end
private
def set_mobile_mode
CurrentUser.mobile_mode = true
end
end