Sha256: 9cf509c7cafee166c0398de00598b3b631356903f3ad71cba72309f0fbee86ad
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
class GlStatusConfiguration < ActiveRecord::Base attr_accessible :id, :context, :result , :field_name , :field_value def self.get_gl_status_event params, metadata context = params[:context] rows = GlStatusConfiguration.where(:context => context) if ( !rows.blank? and (rows.first.field_name.blank? or (!rows.first.field_name.blank? and (metadata[rows.first.field_name] == rows.first.field_value)))) return rows.first.result else return nil end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apl-library-0.0.90 | lib/apl-library/gl_status_configuration.rb |
apl-library-0.0.90 | vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/lib/apl-library/gl_status_configuration.rb |