Skip to content

Commit

Permalink
fetch intern and extern departments
Browse files Browse the repository at this point in the history
  • Loading branch information
Crunch09 committed Mar 24, 2013
1 parent d09a790 commit 794de72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/models/refinery/reports/department.rb
Expand Up @@ -14,6 +14,14 @@ class Department < Refinery::Core::BaseModel
acts_as_indexed :fields => [:name]

validates :name, presence: true, uniqueness: true

def self.intern
where(intern: true)
end

def self.extern
where(intern: false)
end
end
end
end

0 comments on commit 794de72

Please sign in to comment.