Sha256: eda6afeb7babb01e2e8bf55fce0ffe576ac4b8832e415941518c752729ac8a05
Contents?: true
Size: 932 Bytes
Versions: 2
Compression:
Stored size: 932 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 @label = :show_model 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brisk-bills-0.8.2 | vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb |
brisk-bills-0.8.1 | vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb |