Sha256: ad66d38133ff34c4f0a0b6c0bbf3955a6b9a0514ffb3ef09621617d8b0826ebe
Contents?: true
Size: 984 Bytes
Versions: 36
Compression:
Stored size: 984 Bytes
Contents
module ActiveScaffold::Config class Show < Base self.crud_type = :read def initialize(core_config) super # start with the ActionLink defined globally @link = self.class.link.clone @action_group = self.class.action_group.clone if self.class.action_group end # global level configuration # -------------------------- cattr_accessor :link @@link = ActiveScaffold::DataStructures::ActionLink.new('show', :label => :show, :type => :member, :security_method => :show_authorized?) # instance-level configuration # ---------------------------- # the ActionLink for this action attr_accessor :link # the label for this action. used for the header. attr_writer :label # provides access to the list of columns specifically meant for this action to use def columns self.columns = @core.columns._inheritable unless @columns # lazy evaluation @columns end public :columns= end end
Version data entries
36 entries across 36 versions & 2 rubygems