lib/active_admin/dependency.rb in activeadmin-1.0.0 vs lib/active_admin/dependency.rb in activeadmin-1.1.0
- old
+ new
@@ -36,10 +36,10 @@
# ActiveAdmin::Dependency.rails >= '4.2.7'
# => true
#
# Which is especially useful if you're looking up a gem with dashes in the name.
#
- # ActiveAdmin::Dependency['jquery-ui-rails'] < 5
+ # ActiveAdmin::Dependency['jquery-rails'] < 5
# => false
#
def self.method_missing(name, *args)
if name[-1] == '?'
Matcher.new(name[0..-2]).match? args