Class: Adminable::Generators::PartialGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/adminable/partial_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_partialObject



12
13
14
15
16
17
# File 'lib/generators/adminable/partial_generator.rb', line 12

def copy_partial
  template(
    File.join(partial_path),
    File.join('app/views/adminable', resource, partial_path)
  )
end