Sha256: fba4e6ca9695a4d5ae5b524bf73e350ec10a4bf5b25c6360043df94e227172cd

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

class Post < ActiveRecord::Base
  default_scope :order => "#{quoted_table_name}.created_at ASC"
  has_and_belongs_to_many :tags

  def self.factory(text, created_at = nil)
    create!(:text => text, :created_at => created_at)
  end
end

class Event < ActiveRecord::Base
  by_star_field :start_time
  scope :secret, :conditions => { :public => false }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
by_star-2.1.0.beta2 spec/fixtures/active_record/models.rb