lib/lolita/controllers/internal_helpers.rb in lolita-3.1.13 vs lib/lolita/controllers/internal_helpers.rb in lolita-3.1.14
- old
+ new
@@ -40,9 +40,21 @@
@tab_form
end
protected
+ def notice(msg)
+ response.headers["Lolita-Notice"] = Base64.encode64(msg)
+ end
+
+ def alert(msg)
+ response.headers["Lolita-Alert"] = Base64.encode64(msg)
+ end
+
+ def error(msg)
+ response.headers["Lolita-Error"] = Base64.encode64(msg)
+ end
+
def is_lolita_resource?
raise ActionController::UnknownAction unless lolita_mapping
end
def resource=(new_resource)
\ No newline at end of file