Class: AdminAssistant::BaseSettings

Inherits:
AbstractSettings show all
Defined in:
lib/admin_assistant/builder.rb

Instance Attribute Summary

Attributes inherited from AbstractSettings

#column_names

Instance Method Summary collapse

Methods inherited from AbstractSettings

#[], #columns, #initialize

Constructor Details

This class inherits a constructor from AdminAssistant::AbstractSettings

Instance Method Details

#all_polymorphic_typesObject


145
146
147
# File 'lib/admin_assistant/builder.rb', line 145

def all_polymorphic_types
  @column_configs.values.map(&:polymorphic_types).flatten.compact
end

#column_config_fieldsObject


149
150
151
152
# File 'lib/admin_assistant/builder.rb', line 149

def column_config_fields
  {:boolean_labels => :accessor, :label => :accessor,
   :polymorphic_types => :accessor, :strftime_format => :accessor}
end