app/models/mdm/service.rb in metasploit_data_models-0.24.5 vs app/models/mdm/service.rb in metasploit_data_models-1.0.0.pre.rails.pre.4.0a
- old
+ new
@@ -165,10 +165,10 @@
#
# Scopes
#
- scope :inactive, where("services.state != 'open'")
+ scope :inactive, -> { where("services.state != 'open'") }
scope :with_state, lambda { |a_state| where("services.state = ?", a_state)}
scope :search, lambda { |*args|
where([
"services.name ILIKE ? OR " +
"services.info ILIKE ? OR " +