Permalink
Browse files

Formatting.

  • Loading branch information...
jbarnette committed Dec 19, 2010
1 parent 20af4bb commit 03e5d7e15e7b609b907e6e3115b9cacba88dace0
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/modelizer.rb
View
@@ -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 = {}

0 comments on commit 03e5d7e

Please sign in to comment.