Sha256: 1b724b6818f9051b322377b0f020e4f8b577cf9b5f96fd333c56ae67ca8fb051

Contents?: true

Size: 938 Bytes

Versions: 14

Compression:

Stored size: 938 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
    end

    # global level configuration
    # --------------------------
    cattr_accessor :link
    @@link = ActiveScaffold::DataStructures::ActionLink.new('show', :label => :show, :type => :member, :security_method => :show_authorized?, :ignore_method => :show_ignore?)
    # 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

14 entries across 14 versions & 1 rubygems

Version Path
active_scaffold-3.3.3 lib/active_scaffold/config/show.rb
active_scaffold-3.3.2 lib/active_scaffold/config/show.rb
active_scaffold-3.3.1 lib/active_scaffold/config/show.rb
active_scaffold-3.3.0 lib/active_scaffold/config/show.rb
active_scaffold-3.2.20 lib/active_scaffold/config/show.rb
active_scaffold-3.3.0.rc3 lib/active_scaffold/config/show.rb
active_scaffold-3.3.0.rc2 lib/active_scaffold/config/show.rb
active_scaffold-3.2.19 lib/active_scaffold/config/show.rb
active_scaffold-3.3.0.rc lib/active_scaffold/config/show.rb
active_scaffold-3.2.17 lib/active_scaffold/config/show.rb
active_scaffold-3.2.16 lib/active_scaffold/config/show.rb
active_scaffold-3.2.15 lib/active_scaffold/config/show.rb
active_scaffold-3.2.14 lib/active_scaffold/config/show.rb
active_scaffold-3.2.13 lib/active_scaffold/config/show.rb