mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 19:52:18 -05:00
15 lines
276 B
Ruby
15 lines
276 B
Ruby
class HomeController < ApplicationController
|
|
before_action :check_library_exists
|
|
skip_after_action :verify_policy_scoped
|
|
|
|
def index
|
|
@feed = Timeline.local
|
|
end
|
|
|
|
private
|
|
|
|
def check_library_exists
|
|
redirect_to new_library_path if Library.count === 0
|
|
end
|
|
end
|