mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 19:52:18 -05:00
15 lines
279 B
Ruby
15 lines
279 B
Ruby
class HomeController < ApplicationController
|
|
include ModelFilters
|
|
before_action :check_for_first_use
|
|
|
|
def index
|
|
@recent = policy_scope(Model).recent.limit(20)
|
|
end
|
|
|
|
private
|
|
|
|
def check_for_first_use
|
|
redirect_to new_library_path if Library.count === 0
|
|
end
|
|
end
|