Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Formatting.

  • Loading branch information...
commit 03e5d7e15e7b609b907e6e3115b9cacba88dace0 1 parent 20af4bb
@jbarnette authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/modelizer.rb
View
4 lib/modelizer.rb
@@ -65,9 +65,9 @@ def model_template_for klass, defaults = {}, &block
::Modelizer.cache[klass] = [defaults, block]
- klass = klass.name
+ klass = klass.name
nsklass = Modelizer.namespace? ? klass : klass.split("::").last
- model = ::Modelizer.underscore nsklass
+ model = ::Modelizer.underscore nsklass
module_eval <<-END, __FILE__, __LINE__ + 1
def valid_#{model}_attributes extras = {}
Please sign in to comment.
Something went wrong with that request. Please try again.