Skip to content

Instantly share code, notes, and snippets.

View devise.nl.yml
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n
nl:
errors:
messages:
expired: "is verlopen, vraag een nieuwe aan"
not_found: "niet gevonden"
already_confirmed: "is reeds bevestigd"
not_locked: "is niet gesloten"
not_saved:
View base_model.rb
# app/models/my_model.rb
module MyApp
module Model
def self.included(base)
base.send :include, Mongoid::Document
base.send :include, Mongoid::Timestamps
base.send :include, ActiveAdmin::Mongoid::Patches
end
end