class Refinery::PageOptions::Engine

Public Class Methods

initialize_tabs!() click to toggle source
# File lib/refinery/page_options/engine.rb, line 17
def self.initialize_tabs!
  PageOptions.config.enabled_tabs.each do |tab_class_name|
    unless (tab_class = tab_class_name.safe_constantize)
      Rails.logger.warn "PageOptions is unable to find tab class: #{tab_class_name}"
      next
    end
    tab_class.register { |tab| register tab }
  end
end
register(tab) click to toggle source
# File lib/refinery/page_options/engine.rb, line 12
def self.register(tab)
  tab.name = ::I18n.t(:'refinery.plugins.refinery_page_options.tab_name')
  tab.partial = "/refinery/admin/pages/tabs/options"
end