module Enjoy::Pages
Constants
- VERSION
Public Class Methods
active_record?()
click to toggle source
# File lib/enjoy_cms_pages.rb, line 26 def active_record? Enjoy::Pages.orm == :active_record end
config()
click to toggle source
# File lib/enjoy/pages/configuration.rb, line 5 def self.config @configuration ||= Configuration.new end
configuration()
click to toggle source
# File lib/enjoy/pages/configuration.rb, line 2 def self.configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/enjoy/pages/configuration.rb, line 9 def self.configure yield configuration end
model_namespace()
click to toggle source
# File lib/enjoy_cms_pages.rb, line 29 def model_namespace "Enjoy::Pages::Models::#{Enjoy::Pages.orm.to_s.camelize}" end
mongoid?()
click to toggle source
# File lib/enjoy_cms_pages.rb, line 23 def mongoid? Enjoy::Pages.orm == :mongoid end
orm()
click to toggle source
# File lib/enjoy_cms_pages.rb, line 20 def orm Enjoy.orm end
orm_specific(name)
click to toggle source
# File lib/enjoy_cms_pages.rb, line 32 def orm_specific(name) "#{model_namespace}::#{name}".constantize end