lib/pr/active_form.rb in pr-0.0.6 vs lib/pr/active_form.rb in pr-0.0.7
- old
+ new
@@ -16,10 +16,10 @@
ActiveModel::Name.new self
end
end
def to_partial_path
- name = self.class.model_name.downcase
+ name = self.class.model_name.to_s.downcase
[name.pluralize,name].join '/'
end
def to_model
self