Method: Metasploit::Model::Translation::ClassMethods#i18n_scope

Defined in:
lib/metasploit/model/translation.rb

#i18n_scopeString

Classes that include a metasploit-model are trying to share code between ActiveRecord and ActiveModel, so the scope should be neither 'activerecord' nor 'activemodel'.

Returns:

  • (String)

    'metasploit.model'



27
28
29
# File 'lib/metasploit/model/translation.rb', line 27

def i18n_scope
  'metasploit.model'
end