- under construction.... 99%
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Payroll < ActiveRecord::Base | |
scope :ordered, -> { order(starts_at: :asc) } | |
class << self | |
def no_payrolls? | |
all.length == 0 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'paperclip' | |
class Advertiser | |
include MongoMapper::Document | |
include Paperclip::Glue | |
include MMPaperclip | |
key :name, String | |
key :city_id, ObjectId | |
key :logo, String | |
key :description, $text |