Create a gist now

Instantly share code, notes, and snippets.

Remove namespace from routing helpers etc.
def self.model_name
# remove "bit_bindery" prefix from routing helpers etc.
ActiveModel::Name.new(self, self.parent, self.name.demodulize)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment