Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In face of JRuby issue to a particular MRI behavior involving lexical escope of `cvar`s of duped classes, this commit changes the approach by using instance vars without duping classes. Note: Even though it's a JRuby issue jruby/jruby#2988 (comment) I decided to change Lotus implementation because of the complexity of fixing it on JRuby side (second their core maintainers). Ref. hanami/hanami#307
- Loading branch information
1 parent
8d0adf2
commit de7fc47
Showing
8 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,6 +209,7 @@ def map | |
|
||
class IndexView | ||
include Lotus::View | ||
|
||
layout :application | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
require 'rubygems' | ||
require 'bundler/setup' | ||
require 'tilt/erb' | ||
|
||
if ENV['COVERAGE'] == 'true' | ||
require 'simplecov' | ||
|