Class: GlStatusConfiguration
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GlStatusConfiguration
- Defined in:
- lib/apl-library/gl_status_configuration.rb
Class Method Summary collapse
Class Method Details
.get_gl_status_event(params, metadata) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/apl-library/gl_status_configuration.rb', line 5 def self.get_gl_status_event params, context = params[:context] rows = GlStatusConfiguration.where(:context => context) if ( !rows.blank? and (rows.first.field_name.blank? or (!rows.first.field_name.blank? and ([rows.first.field_name] == rows.first.field_value)))) return rows.first.result else return nil end end |