* Remove harsh video restriction and add video duration * Fix video meta data and tests * Modify video tests * Rescue video duration fetch error * Change log to puts in test
9 lines
186 B
Ruby
9 lines
186 B
Ruby
class VideoPolicy < ApplicationPolicy
|
|
def new?
|
|
user.created_at < 2.weeks.ago if user.created_at
|
|
end
|
|
|
|
def create?
|
|
user.created_at < 2.weeks.ago if user.created_at
|
|
end
|
|
end
|