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

Version Path
active_scaffold-sequel-0.8.0 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.7.1 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.7.0 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.6.2 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.6.1 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.6.0 lib/active_scaffold/config/show.rb
active_scaffold-3.2.8 lib/active_scaffold/config/show.rb
active_scaffold-3.2.7 lib/active_scaffold/config/show.rb
active_scaffold-3.2.6 lib/active_scaffold/config/show.rb
active_scaffold-3.2.5 lib/active_scaffold/config/show.rb
active_scaffold-3.2.4 lib/active_scaffold/config/show.rb
active_scaffold-3.2.3 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.5.1 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.5.0 lib/active_scaffold/config/show.rb
active_scaffold-3.2.2 lib/active_scaffold/config/show.rb
active_scaffold-3.2.1 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.4.0 lib/active_scaffold/config/show.rb
active_scaffold-sequel-0.3.0 lib/active_scaffold/config/show.rb
active_scaffold-3.2.0 lib/active_scaffold/config/show.rb
active_scaffold-3.1.20 lib/active_scaffold/config/show.rb