Skip to content

Commit

Permalink
[padrino-helpers] Fixed AbstractFormBuilder class scope name [Thanks …
Browse files Browse the repository at this point in the history
…to Funny-falcon]
  • Loading branch information
DAddYE committed Mar 30, 2011
1 parent b65a7a0 commit 99fb4a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Added in our logs app name space for urls and layouts
* Preserve spaces for text_area using admin/haml
* Prevent using missing rendering engines on admin allowing user to use a different way
* Fixed AbstractFormBuilder class scope name [Thanks to Funny-falcon]

== 0.9.23

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def build_object(object_or_symbol)
# Returns the object's models name
# => user_assignment
def object_model_name(explicit_object=object)
explicit_object.is_a?(Symbol) ? explicit_object : explicit_object.class.to_s.underscore.gsub('/', '-')
explicit_object.is_a?(Symbol) ? explicit_object : explicit_object.class.to_s.underscore.gsub('/', '_')
end

# Returns the class type for the given object
Expand Down

0 comments on commit 99fb4a7

Please sign in to comment.