Skip to content

Commit

Permalink
Require pageflow/rails_vesion in engines
Browse files Browse the repository at this point in the history
Required for plugin test suites.

REDMINE-19438
  • Loading branch information
tf committed Oct 2, 2023
1 parent 4565e98 commit b71adb1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entry_types/paged/lib/pageflow_paged/engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'pageflow/rails_version'

module PageflowPaged
# Rails integration
class Engine < ::Rails::Engine
Expand Down
1 change: 1 addition & 0 deletions entry_types/scrolled/lib/pageflow_scrolled/engine.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'rails'
require 'pageflow/rails_version'

module PageflowScrolled
# Rails integration
Expand Down
2 changes: 2 additions & 0 deletions lib/pageflow/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
require 'pageflow_scrolled'
require 'symmetric-encryption'

require 'pageflow/rails_version'

if Gem::Specification.find_all_by_name('pageflow-react', '>= 0.0').any?
fail('The pageflow-react gem has been merged into the pageflow gem. ' \
'See the pageflow changelog for update instructions.')
Expand Down
1 change: 1 addition & 0 deletions spec/support/pageflow/dummy/app.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'pageflow/version'
require 'pageflow/dummy/exit_on_failure_patch'
require 'pageflow/rails_version'

module Pageflow
module Dummy
Expand Down
2 changes: 2 additions & 0 deletions spec/support/pageflow/dummy/rails_template.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'pageflow/rails_version'

def source_paths
[File.join(File.expand_path(File.dirname(__FILE__)), 'templates')]
end
Expand Down

0 comments on commit b71adb1

Please sign in to comment.