class Sunrise::Config::Group

Public Class Methods

new(abstract_model, parent, name = :default, options = nil) click to toggle source
Calls superclass method Sunrise::Config::Base::new
# File lib/sunrise/config/group.rb, line 11
def initialize(abstract_model, parent, name = :default, options = nil)
  options = { name: name }.merge(options || {})
  super(abstract_model, parent, options)
  @name = name.to_s.tr(' ', '_').downcase.to_sym
end

Public Instance Methods

bottom?() click to toggle source
# File lib/sunrise/config/group.rb, line 27
def bottom?
  @config_options[:holder] == :bottom
end
sidebar?() click to toggle source
title() click to toggle source
# File lib/sunrise/config/group.rb, line 17
def title
  return false if @config_options[:title] === false

  @config_options[:title] || I18n.t(@name, scope: [:manage, :groups])
end