Sha256: 8dc69aed99fe1ad84618ef11207be67a55e6a86b13c3d9da761fd38db78dea88
Contents?: true
Size: 761 Bytes
Versions: 42
Compression:
Stored size: 761 Bytes
Contents
require 'sunrise/config/base' require 'sunrise/config/has_fields' module Sunrise module Config class Group < Base include Sunrise::Config::HasFields 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 def title return false if @config_options[:title] === false @config_options[:title] || I18n.t(@name, :scope => [:manage, :groups]) end def sidebar? @config_options[:holder] == :sidebar end def bottom? @config_options[:holder] == :bottom end end end end
Version data entries
42 entries across 42 versions & 1 rubygems