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