code
stringlengths
1
1.73M
language
stringclasses
1 value
module TermsHelper end
Ruby
module ObjectAndResourceClassesHelper end
Ruby
module AttachmentHelper end
Ruby
module BusinessProcessesHelper end
Ruby
class Term < ActiveRecord::Base end
Ruby
class BusinessProcess < ActiveRecord::Base belongs_to :business_process_class has_and_belongs_to_many :enter_resources, :class_name => "ObjectAndResourceClass", :join_table => :enters has_and_belongs_to_many :exit_resources, :class_name => "ObjectAndResourceClass", :join_table => :exits DIRECTORY_WHOLE =...
Ruby
class ObjectAndResourceClass < ActiveRecord::Base has_and_belongs_to_many :enters_to, :class_name => "BusinessProcess", :join_table => :enters has_and_belongs_to_many :exits_from, :class_name => "BusinessProcess", :join_table => :exits acts_as_ordered_tree def distribution=(distribution) self[:distri...
Ruby
class BusinessProcessClass < ActiveRecord::Base acts_as_ordered_tree has_many :business_processes end
Ruby
class Characteristic < ActiveRecord::Base end
Ruby
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base $KCODE = 'u' helper :all # include all helpers, all the time # See ActionController::RequestForgeryProt...
Ruby
class TermsController < ApplicationController layout 'application' # GET /terms # GET /terms.xml def index @terms = Term.find(:all, :order => 'term ASC') respond_to do |format| format.html # index.html.erb format.xml { render :xml => @terms } end end # GET /terms/1 # GET /ter...
Ruby
class ObjectAndResourceClassesController < ApplicationController in_place_edit_for :object_and_resource_class, :name layout 'application', :except => [:new, :edit, :sub_class] # GET /object_and_resource_classes # GET /object_and_resource_classes.xml def index @object_and_resource_classes = ObjectAnd...
Ruby
require 'fileutils' class AttachmentController < ApplicationController layout 'application', :except => :command UPLOADED = "/uploaded" UPLOADED_ROOT = RAILS_ROOT + "/public" + UPLOADED MIME_TYPES = [ "image/jpeg", "image/gif", "image/png", "application/x-shockwave-flash" ] def comman...
Ruby
class BusinessProcessClassesController < ApplicationController in_place_edit_for :business_process_class, :name layout 'application', :except => :new # GET /business_process_classes # GET /business_process_classes.xml def index @business_process_classes = BusinessProcessClass.roots respond_to d...
Ruby
class BusinessProcessesController < ApplicationController layout 'application' # GET /business_processes # GET /business_processes.xml def index @business_processes = BusinessProcess.find(:all) respond_to do |format| format.html # index.html.erb format.xml { render :xml => @business_pro...
Ruby
xml.instruct! xml.Connector("command" => params[:Command], "resourceType" => 'File') do xml.CurrentFolder("url" => @url, "path" => params[:CurrentFolder]) xml.Folders do @folders.each do |folder| xml.Folder("name" => folder) end end if !@folders.nil? xml.Files do @files.keys.sort.each do |f| ...
Ruby
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' class Test::Unit::TestCase # Transactional fixtures accelerate your tests by wrapping each test method # in a transaction that's rolled back on completion. This ensures that the # test datab...
Ruby
class ChangeTypeInBusinessProcess < ActiveRecord::Migration def self.up change_column_default :business_processes, :type, 0 end def self.down change_column_default :business_processes, :type, nil end end
Ruby
class CreateExitsTable < ActiveRecord::Migration def self.up create_table(:exits, :id => false) do |t| t.integer :business_process_id, :object_and_resource_class_id end end def self.down drop_table(:exits) end end
Ruby
class CreateEntersTable < ActiveRecord::Migration def self.up create_table(:enters, :id => false) do |t| t.integer :business_process_id, :object_and_resource_class_id end end def self.down drop_table(:enters) end end
Ruby
class CreateBusinessProcessClasses < ActiveRecord::Migration def self.up create_table :business_process_classes do |t| t.integer :parent_id, :null => false, :default => 0 t.integer :position t.string :name t.timestamps end add_index(:business_process_classes, :parent_id) end ...
Ruby
class CreateObjectAndResourceClasses < ActiveRecord::Migration def self.up create_table :object_and_resource_classes do |t| t.integer :parent_id, :null => false, :default => 0 t.integer :position t.string :name t.text :description t.string :sub_classes, :null => false, :default => '0...
Ruby
class ChangeNameInBusinessProcessClasses < ActiveRecord::Migration def self.up change_column :business_process_classes, :name, :text, :limit => 350 end def self.down change_column :business_process_classes, :name, :string end end
Ruby
class CreateTerms < ActiveRecord::Migration def self.up create_table :terms do |t| t.string :term t.text :definition t.timestamps end end def self.down drop_table :terms end end
Ruby
class AddLiteratureToBpProcess < ActiveRecord::Migration def self.up add_column :business_processes, :literature, :text end def self.down remove_column :business_processes, :literature end end
Ruby
class CreateBusinessProcesses < ActiveRecord::Migration def self.up create_table :business_processes do |t| t.integer :business_process_class_id t.string :short_name t.string :alternate_short_name t.string :full_name t.boolean :type t.text :entity t.string :diagram_whole ...
Ruby
class AddCharacteristicsToBusinessProcesses < ActiveRecord::Migration def self.up add_column :business_processes, :characteristics, :text end def self.down remove_column :business_processes, :characteristics end end
Ruby
class CreateCharacteristics < ActiveRecord::Migration def self.up create_table :characteristics do |t| t.string :name t.string :currency t.text :comment t.timestamps end end def self.down drop_table :characteristics end end
Ruby
class ChangeTypeInBusinessProcessToTheType < ActiveRecord::Migration def self.up rename_column :business_processes, :type, :the_type end def self.down rename_column :business_processes, :the_type, :type end end
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/inspector'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/inspector'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/plugin'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/generate'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/plugin'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/generate'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/request'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/request'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
Ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the Fast...
Ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispat...
Ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispat...
Ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispat...
Ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the Fast...
Ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispat...
Ruby
# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require(File.join(File.dirname(__FILE__), 'config', 'boot')) require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'tasks/rails'
Ruby
ActionController::Routing::Routes.draw do |map| map.connect 'business_processes/search', :controller => 'business_processes', :action => 'search' map.resources :terms map.resources :object_and_resource_classes map.resources :business_processes map.resources :business_process_classes # Install the defa...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the webserver when you make code changes. config.ca...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = true # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error repor...
Ruby
# Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) module Rails class << self def boot! unless booted? preinitialize pick_boot.run end end def booted? ...
Ruby
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone
Ruby
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', 'people' # i...
Ruby
# Be sure to restart your server when you modify this file # Uncomment below to force Rails into production mode when # you don't control web/app server and can't set it the proper way # ENV['RAILS_ENV'] ||= 'production' # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION = '2.0...
Ruby
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' class Test::Unit::TestCase # Transactional fixtures accelerate your tests by wrapping each test method # in a transaction that's rolled back on completion. This ensures that the # test datab...
Ruby
#!/usr/bin/ruby1.8 require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired...
Ruby
#!/usr/bin/ruby1.8 # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log #...
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/generate'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/plugin'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/dbconsole'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/dbconsole'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/plugin'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/inspector'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/inspector'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/request'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/request'
Ruby