Sha256: 4fde1ab4b94b39eb276758d99b90959e4951523b69aab9045c86bddec63747b5
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
module VerySimpleCms class HtmlBlock < YamlRecord::Base # Declare your properties properties :title, :body, :dynamic_source # Declare your adapter (local by default) # adapter :local # or :redis adapter VerySimpleCms.content_saving_adapter.to_sym # Declare source file path source Rails.root.join(VerySimpleCms.source_files_root) source_file_name VerySimpleCms.source_file_name def to_s {title: title, body: body, dynamic_source: dynamic_source}.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
very_simple_cms-0.0.1 | app/models/very_simple_cms/html_block.rb |