Class: Dbee::Providers::ActiveRecordProvider::SafeAliasMaker
- Inherits:
-
Object
- Object
- Dbee::Providers::ActiveRecordProvider::SafeAliasMaker
- Defined in:
- lib/dbee/providers/active_record_provider/safe_alias_maker.rb
Overview
This class can be used when readable alias names are expected.
Instance Method Summary collapse
Instance Method Details
#make(*parts) ⇒ Object
15 16 17 18 19 |
# File 'lib/dbee/providers/active_record_provider/safe_alias_maker.rb', line 15 def make(*parts) parts.flatten .join('_') .tr('.', '_') end |