Module: ActiveScaffold::MarkedModel::ClassMethods

Defined in:
lib/active_scaffold/marked_model.rb

Instance Method Summary collapse

Instance Method Details

#marked_record_idsObject



33
34
35
# File 'lib/active_scaffold/marked_model.rb', line 33

def marked_record_ids
  marked_records.keys
end

#marked_recordsObject



25
26
27
# File 'lib/active_scaffold/marked_model.rb', line 25

def marked_records
  ActiveScaffold::Registry.marked_records ||= {}
end

#marked_records=(marked) ⇒ Object



29
30
31
# File 'lib/active_scaffold/marked_model.rb', line 29

def marked_records=(marked)
  ActiveScaffold::Registry.marked_records = marked
end