public
Created

Remove namespace from routing helpers etc.

  • Download Gist
invitation.rb
Ruby
1 2 3 4
def self.model_name
# remove "bit_bindery" prefix from routing helpers etc.
ActiveModel::Name.new(self, self.parent, self.name.demodulize)
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.