소스 검색

remove spaces inside {} of app/models/enumeration.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20396 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 년 전
부모
커밋
14943d8d55
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      app/models/enumeration.rb

+ 4
- 4
app/models/enumeration.rb 파일 보기

@@ -35,10 +35,10 @@ class Enumeration < ActiveRecord::Base
validates_uniqueness_of :name, :scope => [:type, :project_id]
validates_length_of :name, :maximum => 30

scope :shared, lambda { where(:project_id => nil) }
scope :sorted, lambda { order(:position) }
scope :active, lambda { where(:active => true) }
scope :system, lambda { where(:project_id => nil) }
scope :shared, lambda {where(:project_id => nil)}
scope :sorted, lambda {order(:position)}
scope :active, lambda {where(:active => true)}
scope :system, lambda {where(:project_id => nil)}
scope :named, lambda {|arg| where("LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip)}

def self.default

Loading…
취소
저장