Revision 461:841b2e40895d vendor/plugins/redmine_bibliography/lib/bibliography

View differences:

vendor/plugins/redmine_bibliography/lib/bibliography/project_publications_patch.rb
5 5
    def self.included(base)
6 6
          base.class_eval do
7 7
            has_and_belongs_to_many :publications
8
          
9
            named_scope :like, lambda {|q| 
10
              s = "%#{q.to_s.strip.downcase}%"
11
              {:conditions => ["LOWER(name) LIKE :s OR LOWER(description) LIKE :s OR LOWER(homepage) LIKE :s", {:s => s}],
12
               :order => 'name'
13
              }
14
            }
8 15
          end
9
        end
16
    end #self.included
17
        
18
    module ProjectMethods
19

  
20

  
21

  
22
    
23
    end #ProjectMethods
10 24
  end #ProjectPublicationsPatch
11 25
end #RedmineBibliography

Also available in: Unified diff