Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
41 changed files
with
450 additions
and
160 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ nbproject | |
*.sqlite3 | ||
*~ | ||
vendor/plugins/authlogic | ||
|
||
.bundle |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
source :gemcutter | ||
source "http://gems.github.com" | ||
|
||
gem "rake", "0.8.7" | ||
gem "rails", "~> 2.3.8" | ||
gem "sqlite3-ruby", "1.3.3", :require => "sqlite3" | ||
|
||
# bundler requires these gems in all environments | ||
# gem "nokogiri", "1.4.2" | ||
# gem "geokit" | ||
gem "searchlogic" | ||
gem "authlogic", "2.1.6" | ||
|
||
gem 'will_paginate', '2.3.16', :require => 'will_paginate' | ||
# config.gem 'ruby-net-ldap', :require => 'net/ldap' | ||
gem "prawn", "0.11.1" | ||
gem 'prawn-core', "0.5.1", :require => 'prawn/core' | ||
gem 'prawn-format', "0.2.1", :require => 'prawn/format' | ||
gem 'prawn-layout', "0.2.1", :require => 'prawn/layout' | ||
|
||
group :development do | ||
# bundler requires these gems in development | ||
# gem "rails-footnotes" | ||
end | ||
|
||
group :test do | ||
# bundler requires these gems while running tests | ||
gem 'test-unit', :require => 'test/unit' | ||
gem 'thoughtbot-shoulda', '2.10.2', :require => 'shoulda' | ||
gem 'mocha', :require => false | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
remote: http://gems.github.com/ | ||
specs: | ||
Ascii85 (1.0.1) | ||
actionmailer (2.3.14) | ||
actionpack (= 2.3.14) | ||
actionpack (2.3.14) | ||
activesupport (= 2.3.14) | ||
rack (~> 1.1.0) | ||
activerecord (2.3.14) | ||
activesupport (= 2.3.14) | ||
activeresource (2.3.14) | ||
activesupport (= 2.3.14) | ||
activesupport (2.3.14) | ||
authlogic (2.1.6) | ||
activesupport | ||
metaclass (0.0.1) | ||
mocha (0.10.0) | ||
metaclass (~> 0.0.1) | ||
pdf-reader (0.10.1) | ||
Ascii85 (~> 1.0.0) | ||
prawn (0.11.1) | ||
pdf-reader (>= 0.9.0) | ||
ttfunk (~> 1.0.0) | ||
prawn-core (0.5.1) | ||
prawn-format (0.2.1) | ||
prawn-core | ||
prawn-layout (0.2.1) | ||
rack (1.1.2) | ||
rails (2.3.14) | ||
actionmailer (= 2.3.14) | ||
actionpack (= 2.3.14) | ||
activerecord (= 2.3.14) | ||
activeresource (= 2.3.14) | ||
activesupport (= 2.3.14) | ||
rake (>= 0.8.3) | ||
rake (0.8.7) | ||
searchlogic (2.5.8) | ||
activerecord (~> 2.3.12) | ||
activerecord (~> 2.3.12) | ||
sqlite3 (1.3.3) | ||
sqlite3-ruby (1.3.3) | ||
sqlite3 (>= 1.3.3) | ||
test-unit (2.4.1) | ||
thoughtbot-shoulda (2.10.2) | ||
ttfunk (1.0.3) | ||
will_paginate (2.3.16) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
authlogic (= 2.1.6) | ||
mocha | ||
prawn (= 0.11.1) | ||
prawn-core (= 0.5.1) | ||
prawn-format (= 0.2.1) | ||
prawn-layout (= 0.2.1) | ||
rails (~> 2.3.8) | ||
rake (= 0.8.7) | ||
searchlogic | ||
sqlite3-ruby (= 1.3.3) | ||
test-unit | ||
thoughtbot-shoulda (= 2.10.2) | ||
will_paginate (= 2.3.16) |
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
class Department < ActiveRecord::Base | ||
|
||
has_many :users | ||
has_many :projects | ||
|
||
validates_presence_of :internal_id, :name | ||
validates_uniqueness_of :internal_id, :name | ||
|
||
def <=>(other) | ||
name <=> other.name | ||
end | ||
|
||
def to_s | ||
name | ||
end | ||
|
||
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
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
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
Oops, something went wrong.