Skip to content

Commit

Permalink
Merge pull request #720 from rdunlop/fix_wysiwyg
Browse files Browse the repository at this point in the history
update tinymce editor, and allow creation of new tenants from the non…
  • Loading branch information
rdunlop authored Dec 8, 2022
2 parents 82a19e5 + 73a992a commit f448d27
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ GEM
net-ssh (7.0.1)
netrc (0.11.0)
nio4r (2.5.8)
nokogiri (1.13.9)
nokogiri (1.13.10)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
numerizer (0.1.1)
Expand All @@ -320,7 +320,7 @@ GEM
public_suffix (4.0.7)
pundit (2.2.0)
activesupport (>= 3.0.0)
racc (1.6.0)
racc (1.6.1)
rack (2.2.4)
rack-test (2.0.2)
rack (>= 1.3)
Expand Down Expand Up @@ -473,7 +473,7 @@ GEM
tilt (2.0.11)
timeout (0.3.0)
timers (4.3.5)
tinymce-rails (4.9.3)
tinymce-rails (6.3.1)
railties (>= 3.1.1)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
Expand All @@ -495,7 +495,7 @@ GEM
chronic (>= 0.6.3)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.4)
zeitwerk (2.6.6)

PLATFORMS
ruby
Expand Down
3 changes: 1 addition & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ To do this:
1. install `docker `and `docker-compose`.
1. run `docker-compose up`
1. Create the database schema with `docker-compose exec app bundle exec rake db:create db:schema:load`
1. Add an entry to your /etc/hosts file `sudo vi /etc/hosts`: `127.0.0.1 www.local.com`
1. open http://www.local.com:3000/new
1. open http://www.lvh.me:3000/new
1. Create a new database `docker-compose run app bundle exec rake db:create db:schema:load`

Setup the database
Expand Down
8 changes: 7 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ def load_config
@config = Rulebook.current_rulebook

# if there is no subdomain specified, redirect to the 'choose-subdomain' page
redirect_to welcome_index_all_path, flash: { alert: "Invalid subdomain" } if @config.nil? && !(controller_name == "welcome" && (action_name == "index_all" || action_name == "new_location"))
if @config.nil? &&
!(
(controller_name == "welcome" && (action_name == "index_all" || action_name == "new_location")) ||
(controller_name == "rulebooks")
)
redirect_to welcome_index_all_path, flash: { alert: "Invalid subdomain" }
end
end

def set_base_breadcrumb
Expand Down
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@

# Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true

config.hosts << "www.lvh.me"
end

0 comments on commit f448d27

Please sign in to comment.