This repository has been archived on 2020-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
|
# frozen_string_literal: true
|
|
|
|
module ApplicationHelper
|
|
def component(component_name, locals = {}, &block)
|
|
name = component_name.split('_').first
|
|
render("components/#{name}/#{component_name}", locals, &block)
|
|
end
|
|
|
|
alias c component
|
|
end
|