Sha256: 3af0a7742f492501a6186606ca5065d12d90bab9c30f439fe6b0c0d59f4630c4

Contents?: true

Size: 276 Bytes

Versions: 49

Compression:

Stored size: 276 Bytes

Contents

class Widget < ActiveRecord::Base
  belongs_to :category

  has_many :widget_tags, inverse_of: :widget
  has_many :tags, through: :widget_tags
  has_many :parts

  attr :password

  exposes_command :twiddle

  def twiddle
    update_attributes(column2: "twiddled")
  end

end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
express_admin-2.0.0.b test/dummy/app/models/widget.rb
express_admin-2.0.0.a test/dummy/app/models/widget.rb
express_admin-1.8.1 test/dummy/app/models/widget.rb
express_admin-1.8.0 test/dummy/app/models/widget.rb
express_admin-1.7.32 test/dummy/app/models/widget.rb
express_admin-1.7.31 test/dummy/app/models/widget.rb
express_admin-1.7.30 test/dummy/app/models/widget.rb
express_admin-1.7.29 test/dummy/app/models/widget.rb
express_admin-1.7.28 test/dummy/app/models/widget.rb
express_admin-1.7.27 test/dummy/app/models/widget.rb
express_admin-1.7.26 test/dummy/app/models/widget.rb
express_admin-1.7.25 test/dummy/app/models/widget.rb
express_admin-1.7.24 test/dummy/app/models/widget.rb
express_admin-1.7.23 test/dummy/app/models/widget.rb
express_admin-1.7.22 test/dummy/app/models/widget.rb
express_admin-1.7.21 test/dummy/app/models/widget.rb
express_admin-1.7.20 test/dummy/app/models/widget.rb
express_admin-1.7.19 test/dummy/app/models/widget.rb
express_admin-1.7.18 test/dummy/app/models/widget.rb
express_admin-1.7.17 test/dummy/app/models/widget.rb