Class: FixtureRecord::Naming::Base
- Inherits:
-
Object
- Object
- FixtureRecord::Naming::Base
- Defined in:
- lib/fixture_record/naming.rb
Instance Method Summary collapse
Instance Method Details
#call(record) ⇒ Object
7 8 9 10 |
# File 'lib/fixture_record/naming.rb', line 7 def call(record) [record.fixture_record_prefix, record.class.model_name.param_key, record.id || 'new', record.fixture_record_suffix].compact_blank.join('_') end |