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