Module: GacoCms
- Defined in:
- app/models/gaco_cms/field.rb,
lib/gaco_cms.rb,
lib/gaco_cms/config.rb,
lib/gaco_cms/engine.rb,
lib/gaco_cms/version.rb,
app/models/gaco_cms/page.rb,
app/models/gaco_cms/theme.rb,
app/models/gaco_cms/page_type.rb,
app/models/gaco_cms/media_file.rb,
app/models/gaco_cms/field_group.rb,
app/models/gaco_cms/field_value.rb,
app/models/gaco_cms/draft_record.rb,
app/jobs/gaco_cms/application_job.rb,
app/models/gaco_cms/application_record.rb,
app/services/gaco_cms/shortcode_parser.rb,
app/helpers/gaco_cms/application_helper.rb,
app/mailers/gaco_cms/application_mailer.rb,
app/models/concerns/gaco_cms/union_scope.rb,
app/controllers/gaco_cms/admin_controller.rb,
app/controllers/gaco_cms/front_controller.rb,
app/services/gaco_cms/application_service.rb,
lib/generators/gaco_cms/install_generator.rb,
app/services/gaco_cms/theme_content_generator.rb,
app/controllers/gaco_cms/admin/base_controller.rb,
app/models/concerns/gaco_cms/fields_assignable.rb,
app/controllers/concerns/gaco_cms/turbo_concern.rb,
app/controllers/gaco_cms/admin/pages_controller.rb,
app/controllers/gaco_cms/admin/fields_controller.rb,
app/controllers/gaco_cms/admin/themes_controller.rb,
app/controllers/gaco_cms/admin/page_types_controller.rb,
app/controllers/gaco_cms/admin/field_groups_controller.rb,
app/controllers/gaco_cms/admin/field_groups_manager_controller.rb,
app/controllers/gaco_cms/admin/field_groups_renderer_controller.rb
Overview
Schema Information
Table name: simple_cms_draft_records
id :integer not null, primary key
record_type :string
created_at :datetime not null
updated_at :datetime not null
Defined Under Namespace
Modules: Admin, ApplicationHelper, FieldsAssignable, Generators, TurboConcern, UnionScope Classes: AdminController, ApplicationJob, ApplicationMailer, ApplicationRecord, ApplicationService, Config, DraftRecord, Engine, Field, FieldGroup, FieldValue, FrontController, MediaFile, Page, PageType, ShortcodeParser, Theme, ThemeContentGenerator
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.table_name_prefix ⇒ Object
9 10 11 |
# File 'lib/gaco_cms.rb', line 9 def self.table_name_prefix Config.table_prefix end |
.translated_column(t_migration, column, **args) ⇒ Object
13 14 15 16 17 |
# File 'lib/gaco_cms.rb', line 13 def self.translated_column(t_migration, column, **args) text_args = {}.merge(args) json_args = { default: {} }.merge(args) t_migration.respond_to?(:jsonb) ? (t_migration.jsonb column, **json_args) : (t_migration.text column, **text_args) end |