Sha256: 598050e785a54c2aa7fc8b182ab729037843cbc2c5c5b5620610c318bac86410
Contents?: true
Size: 1004 Bytes
Versions: 2
Compression:
Stored size: 1004 Bytes
Contents
module ActiveScaffold::Config class Update < ActiveScaffold::Config::Form self.crud_type = :update def initialize(core_config) super self.nested_links = self.class.nested_links self.persistent = self.class.persistent @label = :update_model end # global level configuration # -------------------------- # the ActionLink for this action def self.link @@link end def self.link=(val) @@link = val end @@link = ActiveScaffold::DataStructures::ActionLink.new('edit', :label => :edit, :type => :member, :security_method => :update_authorized?) # whether the form stays open after an update or not cattr_accessor :persistent @@persistent = false # instance-level configuration # ---------------------------- attr_accessor :nested_links cattr_accessor :nested_links @@nested_links = false # whether the form stays open after an update or not attr_accessor :persistent 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/update.rb |
brisk-bills-0.8.1 | vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb |