Sha256: e9fae83c7844b51c678954920a79cc3e55914f76aea9ecf3d7f55e699076bfbd

Contents?: true

Size: 214 Bytes

Versions: 1

Compression:

Stored size: 214 Bytes

Contents

module ZombieFans::Actions
  module Query
    module ClassMethods
      def find query, key = 'login'
        yaml = Persist.load
        new yaml.find { |record| record[key] == query }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zombie_fans-0.2.0 lib/zombie_fans/actions/query.rb