class ActiveScaffold::Config::Show

Attributes

label[W]

the label for this action. used for the header.

Public Class Methods

new(core_config) click to toggle source
Calls superclass method ActiveScaffold::Config::Base::new
# File lib/active_scaffold/config/show.rb, line 5
def initialize(core_config)
  super
end

Public Instance Methods

columns() click to toggle source

provides access to the list of columns specifically meant for this action to use

# File lib/active_scaffold/config/show.rb, line 25
def columns
  self.columns = @core.columns._inheritable unless @columns # lazy evaluation
  @columns
end
label() click to toggle source
# File lib/active_scaffold/config/show.rb, line 20
def label
  @label ? as_(@label) : as_(:show_model, :model => @core.label(:count => 1))
end