You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% page_class.raise "You accidentally rendered an action (#{page_class}) instead of an HTMLPage in the #{@type.name} action. Did you mean #{page_class}Page?"%}
51
+
{%elsif!ancestors.includes?(Lucky::HTMLPage) %}
52
+
{% page_class.raise "Couldn't render #{page_class} in #{@type.name} because it is not an HTMLPage"%}
53
+
{%end%}
49
54
50
55
# Found in {{ @type.name }}
51
56
view = {{ page_class }}.new(
@@ -91,17 +96,6 @@ module Lucky::Renderable
91
96
{%end%}
92
97
end
93
98
94
-
# :nodoc:
95
-
macrovalidate_page_class!(page_class)
96
-
{% ancestors = page_class.resolve.ancestors %}
97
-
98
-
{%if ancestors.includes?(Lucky::Action) %}
99
-
{% page_class.raise "You accidentally rendered an action (#{page_class}) instead of an HTMLPage in the #{@type.name} action. Did you mean #{page_class}Page?"%}
100
-
{%elsif!ancestors.includes?(Lucky::HTMLPage) %}
101
-
{% page_class.raise "Couldn't render #{page_class} in #{@type.name} because it is not an HTMLPage"%}
102
-
{%end%}
103
-
end
104
-
105
99
# Disable cookies
106
100
#
107
101
# When `disable_cookies` is used, no `Set-Cookie` header will be written to
0 commit comments