hmm I totally missed that it was already there
This commit is contained in:
parent
06bd9e3234
commit
e9d37f395f
|
@ -20,7 +20,6 @@ class SiteContent < ActiveRecord::Base
|
|||
add_content_type :login_required_welcome_message, default_18n_key: 'login_required.welcome_message'
|
||||
add_content_type :privacy_policy, allow_blank: true
|
||||
add_content_type :faq, allow_blank: true
|
||||
add_content_type :login_required, default_18n_key: 'login_required.welcome_message'
|
||||
|
||||
def site_content_type
|
||||
@site_content_type ||= SiteContent.content_types.find {|t| t.content_type == content_type.to_sym}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<%= PrettyText.cook(SiteContent.content_for(:login_required)).html_safe %>
|
||||
<%= markdown_content(:login_required_welcome_message) %>
|
||||
|
|
Loading…
Reference in New Issue