zilkey (owner)

Revisions

gist: 220051 Download_button fork
public
Public Clone URL: git://gist.github.com/220051.git
Embed All Files: show embed
fixjour_namespaced_model_out_of_the_box.rb #
1
2
3
4
5
6
7
8
9
# 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