Class: AppsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AppsController
- Defined in:
- app/controllers/apps_controller.rb
Instance Method Summary (collapse)
Methods inherited from ApplicationController
#after_sign_in_path_for, #clear_gc_stats, #ensure_http_referer_is_set, #ensure_page, #grammatical_gender, #redirect_unless_admin, #set_git_header, #set_grammatical_gender, #set_header_data, #set_invites, #set_locale, #which_action_and_user
Instance Method Details
- (Object) show
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/apps_controller.rb', line 2 def show @app = 'cubbies' @posts = ActivityStreams::Photo max_time = params[:max_time] ? Time.at(params[:max_time].to_i) : Time.now @posts = @posts.where(ActivityStreams::Photo.arel_table[:created_at].lt(max_time) ).where(:public => true ).order('posts.created_at DESC' ).includes(:author => :profile).limit(30) @commenting_disabled = true @people = [] @people_count = 0 end |