Class: IshManager::ImageAssetsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ish_manager/image_assets_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#home

Instance Method Details

#indexObject



4
5
6
7
# File 'app/controllers/ish_manager/image_assets_controller.rb', line 4

def index
  authorize! :index, Ish::ImageAsset
  @image_assets = Ish::ImageAsset.all.order_by( created_at: :desc ).limit(10)
end