Module: ActiveScaffold::MarkedModel::ClassMethods

Defined in:
lib/active_scaffold/marked_model.rb

Instance Method Summary collapse

Instance Method Details

#marked_record_idsObject



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

def marked_record_ids
  marked_records.keys
end

#marked_recordsObject



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

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

#marked_records=(marked) ⇒ Object



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

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