Sha256: 82cdd01db72a7c741fe179aa81ee09892b582219c124ba669754ee2eaa39126f
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
class PowerApi::InternalApiConfigGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) def add_base_controller create_file( helper.internal_base_controller_path, helper.internal_base_controller_tpl ) end def modify_routes insert_into_file( helper.routes_path, after: helper.routes_first_line ) do helper.internal_route_tpl end helper.format_ruby_file(helper.routes_path) end def add_serializers_directory create_file(helper.ams_serializers_path) end private def helper @helper ||= PowerApi::GeneratorHelpers.new end end
Version data entries
5 entries across 5 versions & 1 rubygems