Module: Ephemeron::Store::Finders
- Defined in:
- lib/ephemeron/store/finders.rb
Class Method Summary collapse
Class Method Details
.find_first_allowed_but_unsaved ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/ephemeron/store/finders.rb', line 8 def find_first_allowed_but_unsaved ary = Logger.logs .reverse .map(&:split) .find { |arr| %w[save_allowed saved].include?(arr[1]) } return nil if ary.nil? || ary[1] == 'saved' Store.store[ary[0]] end |