Method: Editus::Action#initialize
- Defined in:
- lib/editus/actions.rb
#initialize(**args) ⇒ Action
Returns a new instance of Action.
37 38 39 40 41 42 43 44 45 |
# File 'lib/editus/actions.rb', line 37 def initialize **args @id = args[:id] || SecureRandom.uuid @created_at = args[:created_at] || Time.now.utc @model_id = args[:model_id] @model_name = args[:model_name] @changes = args[:changes] @type = args[:type] @user = args[:user] end |