Sha256: 33818950b281e6f38ef763fa96383880b092eec93a49a4f469cfa27877f3cf3b

Contents?: true

Size: 268 Bytes

Versions: 13

Compression:

Stored size: 268 Bytes

Contents

module RootRevisionExt
  extend ActiveSupport::Concern

  def extend_path_data(args)
    attrs = self.class.prepare_hash(args)
    if attrs[:main]
      self.class.all_path_keys.each do |k|
        attrs[k] = attrs[:main][k.to_s]
      end
    end
    attrs
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sw2at-ui-0.0.13 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.12 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.11 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.10 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.9 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.8 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.7 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.6 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.5 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.4 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.3 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.2 app/models/concerns/root_revision_ext.rb
sw2at-ui-0.0.1 app/models/concerns/root_revision_ext.rb