Code reformattingand code layout beautying.
This commit is contained in:
parent
b0ffaf1e5a
commit
c2010124f5
102 changed files with 1014 additions and 811 deletions
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class ActivityController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class ApplicationController < ActionController::Base
|
||||
# http_basic_authenticate_with :name => "test", :password => "ttt"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class ChannelsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class EmailAddressesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class GettingStartedController < ApplicationController
|
||||
|
||||
=begin
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class GroupsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class InitController < ApplicationController
|
||||
|
||||
# GET /init
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class LinksController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class LongPollingController < ApplicationController
|
||||
|
||||
# GET /api/message_send
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class NetworksController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class OrganizationsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class OverviewsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class PackagesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class PostmasterFiltersController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class RecentViewedController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class RolesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class RssController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class SearchController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
module ExtraCollection
|
||||
def session( collections, user )
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
module ExtraCollection
|
||||
def session( collections, user )
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
module ExtraCollection
|
||||
def session( collections, user )
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class SessionsController < ApplicationController
|
||||
# def create
|
||||
# render :text => request.env['rack.auth'].inspect
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class SettingsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class SignaturesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class SlasController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TagsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TaskbarController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TemplatesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TestsController < ApplicationController
|
||||
|
||||
# GET /test
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TextModulesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TicketArticlesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TicketOverviewsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
# GET /api/tickets
|
||||
def show
|
||||
#sleep 2
|
||||
|
||||
# get navbar overview data
|
||||
if !params[:view]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TicketPrioritiesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TicketStatesController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TicketsController < ApplicationController
|
||||
before_filter :authentication_check
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TranslationsController < ApplicationController
|
||||
before_filter :authentication_check, :except => [:load]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class UsersController < ApplicationController
|
||||
before_filter :authentication_check, :except => [:create, :password_reset_send, :password_reset_verify]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'cache'
|
||||
require 'user_info'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Authorization < ApplicationModel
|
||||
belongs_to :user
|
||||
after_create :delete_user_cache
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Channel < ApplicationModel
|
||||
store :options
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'mail'
|
||||
|
||||
class Channel::EmailBuild
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
# encoding: utf-8
|
||||
|
||||
require 'mail'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
#require 'rubygems'
|
||||
#require 'twitter'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
# process all database filter
|
||||
module Channel::Filter::Database
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
# delete all X-Zammad header if channel is not trusted
|
||||
module Channel::Filter::Trusted
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'net/imap'
|
||||
|
||||
class Channel::IMAP < Channel::EmailParser
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Channel::MailStdin < Channel::EmailParser
|
||||
def initialize
|
||||
puts "read main from STDIN"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'net/pop'
|
||||
|
||||
class Channel::POP3 < Channel::EmailParser
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Channel::Sendmail < Channel::EmailBuild
|
||||
def send(attr, channel, notification = false)
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Channel::SMTP < Channel::EmailBuild
|
||||
def send(attr, channel, notification = false)
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'twitter'
|
||||
|
||||
class Channel::Twitter2
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class EmailAddress < ApplicationModel
|
||||
has_many :groups, :after_add => :cache_update, :after_remove => :cache_update
|
||||
validates :realname, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Group < ApplicationModel
|
||||
has_and_belongs_to_many :users, :after_add => :cache_update, :after_remove => :cache_update
|
||||
belongs_to :email_address
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class History < ApplicationModel
|
||||
self.table_name = 'histories'
|
||||
belongs_to :history_type, :class_name => 'History::Type'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Link < ApplicationModel
|
||||
belongs_to :link_type, :class_name => 'Link::Type'
|
||||
belongs_to :link_object, :class_name => 'Link::Object'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Network < ApplicationModel
|
||||
# belongs_to :group
|
||||
# belongs_to :ticket_state, :class_name => 'Ticket::State'
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Notifications < ActiveRecord::Base
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'history'
|
||||
|
||||
class Observer::History < ActiveRecord::Observer
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'history'
|
||||
|
||||
class Observer::Tag::TicketHistory < ActiveRecord::Observer
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::Article::CommunicateEmail < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::Article::CommunicateFacebook < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::Article::CommunicateTwitter < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::Article::FillupFromEmail < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::Article::FillupFromGeneral < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::ArticleCounter < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::ArticleSenderType < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::CloseTime < ActiveRecord::Observer
|
||||
observe 'ticket'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::EscalationCalculation < ActiveRecord::Observer
|
||||
observe 'ticket', 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::FirstResponse < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::LastContact < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'notification_factory'
|
||||
|
||||
class Observer::Ticket::Notification < ActiveRecord::Observer
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::ResetNewState < ActiveRecord::Observer
|
||||
observe 'ticket::_article'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer
|
||||
observe 'ticket'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Organization < ApplicationModel
|
||||
has_and_belongs_to_many :users
|
||||
validates :name, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Overview < ApplicationModel
|
||||
store :condition
|
||||
store :order
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'rexml/document'
|
||||
class Package < ApplicationModel
|
||||
@@root = Rails.root.to_s
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class PostmasterFilter < ApplicationModel
|
||||
store :perform
|
||||
store :match
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class RecentView < ApplicationModel
|
||||
belongs_to :recent_view_object, :class_name => 'RecentView::Object'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Role < ApplicationModel
|
||||
has_and_belongs_to_many :users, :after_add => :cache_update, :after_remove => :cache_update
|
||||
validates :name, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Scheduler < ApplicationModel
|
||||
|
||||
def self.run( worker, worker_count )
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Setting < ApplicationModel
|
||||
store :options
|
||||
store :state
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Signature < ApplicationModel
|
||||
has_many :groups, :after_add => :cache_update, :after_remove => :cache_update
|
||||
validates :name, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'cache'
|
||||
|
||||
class Sla < ApplicationModel
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'digest/md5'
|
||||
|
||||
class Store < ApplicationModel
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Tag < ApplicationModel
|
||||
belongs_to :tag_object, :class_name => 'Tag::Object'
|
||||
belongs_to :tag_item, :class_name => 'Tag::Item'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Taskbar < ApplicationModel
|
||||
store :state
|
||||
store :params
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Template < ApplicationModel
|
||||
store :options
|
||||
validates :name, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TextModule < ApplicationModel
|
||||
validates :name, :presence => true
|
||||
validates :content, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'time_calculation'
|
||||
require 'sla'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Ticket::Article < ApplicationModel
|
||||
after_create :attachment_check
|
||||
belongs_to :ticket
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Ticket::Counter < ApplicationModel
|
||||
end
|
|
@ -1,2 +1,4 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Ticket::Flag < ApplicationModel
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
module Ticket::Number::Date
|
||||
extend self
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
module Ticket::Number::Increment
|
||||
extend self
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Ticket::Priority < ApplicationModel
|
||||
self.table_name = 'ticket_priorities'
|
||||
validates :name, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Ticket::State < ApplicationModel
|
||||
belongs_to :state_type, :class_name => 'Ticket::StateType'
|
||||
validates :name, :presence => true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Ticket::StateType < ApplicationModel
|
||||
has_many :states, :class_name => 'Ticket::State'
|
||||
validates :name, :presence => true
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class TimeAccounting < ActiveRecord::Base
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Token < ActiveRecord::Base
|
||||
before_create :generate_token
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class Translation < ApplicationModel
|
||||
before_create :set_initial
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue