Sha256: b964c7a5c84f6dc0feb9a67391ba49e3d113014daef854a120fb373b05481c82

Contents?: true

Size: 204 Bytes

Versions: 10

Compression:

Stored size: 204 Bytes

Contents

module E9Vendors::Model
  extend ActiveSupport::Concern

  def role
    'administrator'.role
  end

  module ClassMethods
    def touch_all
      update_all(:updated_at => DateTime.now)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
e9_vendors-0.0.10 lib/e9_vendors/model.rb
e9_vendors-0.0.9 lib/e9_vendors/model.rb
e9_vendors-0.0.8 lib/e9_vendors/model.rb
e9_vendors-0.0.7 lib/e9_vendors/model.rb
e9_vendors-0.0.6 lib/e9_vendors/model.rb
e9_vendors-0.0.5 lib/e9_vendors/model.rb
e9_vendors-0.0.4 lib/e9_vendors/model.rb
e9_vendors-0.0.3 lib/e9_vendors/model.rb
e9_vendors-0.0.2 lib/e9_vendors/model.rb
e9_vendors-0.0.1 lib/e9_vendors/model.rb