rails new plugin, see readme for command

This commit is contained in:
2022-11-28 19:22:50 +02:00
commit f97ce5ae7b
71 changed files with 920 additions and 0 deletions

View File

@ -0,0 +1 @@
//= link_directory ../stylesheets/merged .css

View File

View File

@ -0,0 +1,15 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/

View File

View File

@ -0,0 +1,4 @@
module Merged
class ApplicationController < ActionController::Base
end
end

View File

@ -0,0 +1,4 @@
module Merged
module ApplicationHelper
end
end

View File

@ -0,0 +1,4 @@
module Merged
class ApplicationJob < ActiveJob::Base
end
end

View File

@ -0,0 +1,6 @@
module Merged
class ApplicationMailer < ActionMailer::Base
default from: "from@example.com"
layout "mailer"
end
end

View File

View File

@ -0,0 +1,5 @@
module Merged
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
end

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Merged</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "merged/application", media: "all" %>
</head>
<body>
<%= yield %>
</body>
</html>