Sha256: cb3fbf8e685c49817966943bdc9e581e42e2f1d8195c6caf14b13043e32ca73a
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 Bytes
Contents
include LatoBlog::Interface # set languages identifier. BLOG_LANGUAGES_IDENTIFIER = blog__get_languages_identifier # set posts possible status. BLOG_POSTS_STATUS = { deleted: 'deleted', drafted: 'drafted', published: 'published' } # create default category. if ActiveRecord::Base.connection.table_exists?('lato_blog_category_parents') && ActiveRecord::Base.connection.table_exists?('lato_blog_categories') blog__create_default_category end # sync config fields with primary fields. if ActiveRecord::Base.connection.table_exists?('lato_blog_post_fields') blog__sync_config_post_fields_with_db_post_fields end
Version data entries
6 entries across 6 versions & 1 rubygems