module Weeler
Public Class Methods
setup() { |self| ... }
click to toggle source
# File lib/weeler.rb, line 69 def self.setup yield self if Weeler.use_weeler_i18n == true && ActiveRecord::Base.connection.data_source_exists?('weeler_translations') require "i18n/weeler" Weeler.static_sections.each do |key, section| Weeler.static_menu_items << {name: key.to_s.capitalize, weeler_path: "static_sections/#{key}"} end end build_main_menu end
translations()
click to toggle source
# File lib/weeler.rb, line 103 def self.translations I18n::Backend::Weeler::Translation if Weeler.use_weeler_i18n == true end