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
# File lib/active_scaffold/config/show.rb, line 5
def initialize(core_config)
  @core = core_config
  # start with the ActionLink defined globally
  @link = self.class.link.clone
  @action_group = self.class.action_group.clone if self.class.action_group
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 28
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 23
def label
  @label ? as_(@label) : as_(:show_model, :model => @core.label(:count => 1))
end