lib/ultra_settings/configuration.rb in ultra_settings-1.1.2 vs lib/ultra_settings/configuration.rb in ultra_settings-2.0.0

- old
+ new

@@ -84,16 +84,16 @@ # Check if the field is defined on the configuration. # # @param name [Symbol, String] The name of the field. # @return [Boolean] - def include?(name) + def include_field?(name) name = name.to_s return true if defined_fields.include?(name) if superclass <= Configuration - superclass.include?(name) + superclass.include_field?(name) else false end end @@ -444,10 +444,10 @@ def [](name) send(name.to_s) if include?(name) end def include?(name) - self.class.include?(name.to_s) + self.class.include_field?(name.to_s) end def override!(values, &block) save_val = @override_values[Thread.current.object_id]