Sha256: badd05756a8327237ed56da3884df0d3e0893c1dffbe16e102c7a30ef9361e52
Contents?: true
Size: 489 Bytes
Versions: 5
Compression:
Stored size: 489 Bytes
Contents
module Blacksand module ControllerHelper extend ActiveSupport::Concern class_methods do # 应用 theme, 加载导航, 引用 helper method 到 view def blacksand theme Blacksand.site_id loan_navigations helper BlacksandFront::PagesHelper end def loan_navigations before_action do @navigations = Blacksand::Navigation.includes(page: :positioned_children).order(:position) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems