Skip to content

Instantly share code, notes, and snippets.

@zilkey
Created October 27, 2009 23:09
Show Gist options
  • Save zilkey/220051 to your computer and use it in GitHub Desktop.
Save zilkey/220051 to your computer and use it in GitHub Desktop.
# This allows you to have namespaced models in fixjour
module Fixjour
class Builder
def name
@name ||= (@options[:as] || @klass.name.underscore).to_s.gsub("/", "_")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment