lib/generators/hoc_utils/api_scaffold/api_scaffold_generator.rb
# Generates admin controllers in app/admin
Generates admin controllers in app/admin
Generates admin controllers in app / admin
def generate_admin_controllers
        return unless options.admin?
        say "Generates app/admin/#{plural_table_name}_admin.rb", :bold
        generate "trestle:resource #{singular_table_name}"
      end
def generate_admin_controllers return unless options . admin? say "Generates app/admin/#{plural_table_name}_admin.rb" , :bold generate "trestle:resource #{singular_table_name}" end
Generates admin controllers in app/admin
Generates admin controllers in app / admin