module Blacksand::ControllerHelper

Public Instance Methods

blacksand() click to toggle source

应用 theme, 加载导航, 引用 helper method 到 view

# File lib/blacksand/controller_helper.rb, line 8
def blacksand
  theme Blacksand.site_id
  loan_navigations
  helper BlacksandFront::PagesHelper
end
loan_navigations() click to toggle source
# File lib/blacksand/controller_helper.rb, line 14
def loan_navigations
  before_action do
    @navigations = Blacksand::Navigation.includes(page: :positioned_children).order(:position)
  end
end