Sha256: 688286fa63d9f9f7565328d0a06ee8974125000865ec81adb9a8a6199249638f
Contents?: true
Size: 439 Bytes
Versions: 10
Compression:
Stored size: 439 Bytes
Contents
module Gritano class Repository < ActiveRecord::Base validates :name, presence: true validates_uniqueness_of :name has_many :permissions has_many :users, through: :permissions before_create :create_bare_repo def create_bare_repo Grit::Repo.init_bare(full_path) end def full_path if path File.join(path, name) else name end end end end
Version data entries
10 entries across 10 versions & 1 rubygems