Class: Resizing::Rails::VideosController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Resizing::Rails::VideosController
- Defined in:
- app/controllers/resizing/rails/videos_controller.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
18 19 20 |
# File 'app/controllers/resizing/rails/videos_controller.rb', line 18 def client @client ||= Resizing::Video::Client.new end |
#index ⇒ Object
7 8 9 10 |
# File 'app/controllers/resizing/rails/videos_controller.rb', line 7 def index @videos = Resizing::Rails::Video.order('created_at desc').page(params[:page]).per(20) render text: 'index' end |