Class: Ishapi::My::VideosController
- Inherits:
-
MyController
- Object
- ActionController::Base
- ApplicationController
- MyController
- Ishapi::My::VideosController
- Defined in:
- app/controllers/ishapi/my/videos_controller.rb
Instance Method Summary collapse
Methods inherited from MyController
Methods inherited from ApplicationController
#home, #long_term_token, #test
Instance Method Details
#index ⇒ Object
6 7 8 9 |
# File 'app/controllers/ishapi/my/videos_controller.rb', line 6 def index :my_index, Video @videos = @current_user.profile.videos.unscoped.where( is_trash: false ).order_by( created_at: :desc ).limit(20) end |