Class: VimeoVideo
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- VimeoVideo
- Defined in:
- app/models/vimeo_video.rb
Overview
This model acts as a wrapper for uploaded videos only Everything else happens directly with the advanced vimeo api
Constant Summary collapse
- MAX_SIZE_IN_MB =
What is the max resource size a user can upload
1000
- PAGES_PER_DIALOG =
when a dialog pops up with resources, how many resources per page should there be
18
- PAGES_PER_ADMIN_INDEX =
when listing resources out in the admin area, how many resources should show per page
20
Class Method Summary collapse
-
.per_page(dialog = false) ⇒ Object
How many resources per page should be displayed?.
Class Method Details
.per_page(dialog = false) ⇒ Object
How many resources per page should be displayed?
17 18 19 |
# File 'app/models/vimeo_video.rb', line 17 def per_page(dialog = false) dialog ? PAGES_PER_DIALOG : PAGES_PER_ADMIN_INDEX end |