rails new plugin, see readme for command
This commit is contained in:
1
app/assets/config/merged_manifest.js
Normal file
1
app/assets/config/merged_manifest.js
Normal file
@ -0,0 +1 @@
|
||||
//= link_directory ../stylesheets/merged .css
|
0
app/assets/images/merged/.keep
Normal file
0
app/assets/images/merged/.keep
Normal file
15
app/assets/stylesheets/merged/application.css
Normal file
15
app/assets/stylesheets/merged/application.css
Normal 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
|
||||
*/
|
0
app/controllers/concerns/.keep
Normal file
0
app/controllers/concerns/.keep
Normal file
4
app/controllers/merged/application_controller.rb
Normal file
4
app/controllers/merged/application_controller.rb
Normal file
@ -0,0 +1,4 @@
|
||||
module Merged
|
||||
class ApplicationController < ActionController::Base
|
||||
end
|
||||
end
|
4
app/helpers/merged/application_helper.rb
Normal file
4
app/helpers/merged/application_helper.rb
Normal file
@ -0,0 +1,4 @@
|
||||
module Merged
|
||||
module ApplicationHelper
|
||||
end
|
||||
end
|
4
app/jobs/merged/application_job.rb
Normal file
4
app/jobs/merged/application_job.rb
Normal file
@ -0,0 +1,4 @@
|
||||
module Merged
|
||||
class ApplicationJob < ActiveJob::Base
|
||||
end
|
||||
end
|
6
app/mailers/merged/application_mailer.rb
Normal file
6
app/mailers/merged/application_mailer.rb
Normal file
@ -0,0 +1,6 @@
|
||||
module Merged
|
||||
class ApplicationMailer < ActionMailer::Base
|
||||
default from: "from@example.com"
|
||||
layout "mailer"
|
||||
end
|
||||
end
|
0
app/models/concerns/.keep
Normal file
0
app/models/concerns/.keep
Normal file
5
app/models/merged/application_record.rb
Normal file
5
app/models/merged/application_record.rb
Normal file
@ -0,0 +1,5 @@
|
||||
module Merged
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
end
|
||||
end
|
15
app/views/layouts/merged/application.html.erb
Normal file
15
app/views/layouts/merged/application.html.erb
Normal 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>
|
Reference in New Issue
Block a user