Class: Marty::ImportType
- Inherits:
-
Base
- Object
- ActiveRecord::Base
- Base
- Marty::ImportType
- Defined in:
- app/models/marty/import_type.rb
Defined Under Namespace
Classes: ImportTypeValidator
Constant Summary
Constants inherited from Base
Base::COUNT_SIG, Base::DISTINCT_SIG, Base::FIRST_SIG, Base::GROUP_SIG, Base::JOINS_SIG, Base::LAST_SIG, Base::LIMIT_SIG, Base::MCFLY_PT_SIG, Base::NOT_SIG, Base::ORDER_SIG, Base::PLUCK_SIG, Base::SELECT_SIG, Base::WHERE_SIG
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from ActiveRecord::Base
Instance Method Details
#allow_import? ⇒ Boolean
40 41 42 |
# File 'app/models/marty/import_type.rb', line 40 def allow_import? Mcfly.whodunnit && Mcfly.whodunnit.roles.pluck(:id).include?(role_id) end |
#get_model_class ⇒ Object
36 37 38 |
# File 'app/models/marty/import_type.rb', line 36 def get_model_class db_model_name.constantize if db_model_name end |