Skip to content
Snippets Groups Projects
Commit c715f8b0 authored by Alexander Post's avatar Alexander Post
Browse files

initial temp commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 105 additions and 0 deletions
/*
* 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, 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
*/
module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
module ApplicationCable
class Connection < ActionCable::Connection::Base
end
end
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
end
module ApplicationHelper
end
class ApplicationJob < ActiveJob::Base
end
class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com'
layout 'mailer'
end
class AdminUser < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable,
:recoverable, :rememberable, :trackable, :validatable
end
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
class Group < ApplicationRecord
self.table_name = "group"
has_and_belongs_to_many :users,
join_table: "user_group",
class_name: "User"
accepts_nested_attributes_for :users
end
class Key < ApplicationRecord
self.table_name = "key"
end
class Nodegroup < ApplicationRecord
self.table_name = "nodegroup"
has_and_belongs_to_many :roles,
join_table: "nodegroup_role",
class_name: "Role"
accepts_nested_attributes_for :roles
end
class Person < ApplicationRecord
self.table_name = "person"
end
class Role < ApplicationRecord
self.table_name = "role"
has_and_belongs_to_many :nodegroups,
join_table: "nodegroup_role",
class_name: "Nodegroup"
accepts_nested_attributes_for :nodegroups
end
class User < ApplicationRecord
self.table_name = "user"
has_and_belongs_to_many :groups,
join_table: "user_group",
class_name: "Group"
accepts_nested_attributes_for :groups
end
<!DOCTYPE html>
<html>
<head>
<title>Pwui</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<%= yield %>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
/* Email styles need to be inline */
</style>
</head>
<body>
<%= yield %>
</body>
</html>
<%= yield %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment