Project

General

Profile

« Previous | Next » 

Revision 69f8d207

Added by Ohad Levy almost 14 years ago

  • ID 69f8d207a4cc304775263680d6454a871042ecc9

fixes #277 - add search options to puppet classes page

View differences:

app/models/puppetclass.rb
name
end
def self.search(search)
if search
find(:all, :conditions => ['name LIKE ?', "%#{search}%"])
else
find(:all)
end
end
# returns a hash containing modules and associated classes
def self.classes2hash classes
hash = {}
......
klass <=> other.klass
end
def self.per_page
20
end
end

Also available in: Unified diff