Module: ActsAsImmutable

Defined in:
lib/acts_as_immutable.rb,
lib/acts_as_immutable/version.rb

Overview

--------------------------------------------------------------------------- | Acts As Immutable | --------------------------------------------------------------------------- | A Rails plugin that will ensure an ActiveRecord object is immutable once | | saved. Optionally, you can specify attributes to be mutable if the object | | is in a particular state (block evaluates to true). | --------------------------------------------------------------------------- | Author: NuLayer Inc. / www.nulayer.com | ---------------------------------------------------------------------------

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
# File 'lib/acts_as_immutable.rb', line 12

def self.included(base)
  base.extend ClassMethods
  base.send :include, InstanceMethods
end