Module Cms::Behaviors::Versioning::ClassMethods
In: lib/cms/behaviors/versioning.rb

Methods

Public Instance methods

[Source]

    # File lib/cms/behaviors/versioning.rb, line 50
50:         def version_class
51:           const_get "Version"
52:         end

[Source]

    # File lib/cms/behaviors/versioning.rb, line 54
54:         def version_class_name
55:           "#{name}::Version"
56:         end

[Source]

    # File lib/cms/behaviors/versioning.rb, line 58
58:         def version_foreign_key
59:           @version_foreign_key
60:         end

[Source]

    # File lib/cms/behaviors/versioning.rb, line 62
62:         def version_table_name        
63:           @version_table_name
64:         end

[Source]

    # File lib/cms/behaviors/versioning.rb, line 66
66:         def versioned_columns
67:           @versioned_columns ||= (version_class.new.attributes.keys - 
68:             (%w[id lock_version position version_comment created_at updated_at created_by_id updated_by_id type] + [version_foreign_key]))
69:         end

[Validate]