Method: Effective::Resources::Paths#view_file

Defined in:
app/models/effective/resources/paths.rb

#view_file(action = :index, partial: false) ⇒ Object



23
24
25
# File 'app/models/effective/resources/paths.rb', line 23

def view_file(action = :index, partial: false)
  File.join(*[tenant_path, 'app/views', class_path, namespace, plural_name, "#{'_' if partial}#{action}.html.haml"].compact)
end