Sha256: f352b9f292afebfd52079d1cdd88ef5e70e48caad2673b1f51fc2b88ce0073b1

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

# encoding: UTF-8

__END__
require File.expand_path("./helper", File.dirname(__FILE__))

class Comment < Ohm::Model
  def self.ranks
    @indices ||= []
  end

  def self.rank(attribute)
    ranks << attribute unless ranks.include?(attribute)
  end

  def ranked?(attribute)
  end
end

setup do
  User.create(:email => "a@a.com")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ohm-1.3.0 test/ranks.rb