lib/parameters/class_methods.rb in parameters-0.2.2 vs lib/parameters/class_methods.rb in parameters-0.2.3
- old
+ new
@@ -73,15 +73,15 @@
options[:default]
)
# define the reader class method for the parameter
meta_def(name) do
- params[name].value
+ get_param(name).value
end
# define the writer class method for the parameter
meta_def("#{name}=") do |value|
- params[name].value = value
+ get_param(name).value = value
end
# define the getter/setter instance methods for the parameter
attr_accessor(name)
end