Sha256: 2d921be5b29cedb20ae5f2873423228a8a481b2d8ed79f62c75234b0bcb7f4b4

Contents?: true

Size: 185 Bytes

Versions: 19

Compression:

Stored size: 185 Bytes

Contents

# Used for link-methods in Rails apps
module Baza::DatabaseModelFunctionality
  def to_model
    Baza::DatabaseModel.new(self)
  end

  def model_name
    to_model.model_name
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
baza-0.0.38 lib/baza/database_model_functionality.rb
baza-0.0.37 lib/baza/database_model_functionality.rb
baza-0.0.36 lib/baza/database_model_functionality.rb
baza-0.0.35 lib/baza/database_model_functionality.rb
baza-0.0.34 lib/baza/database_model_functionality.rb
baza-0.0.33 lib/baza/database_model_functionality.rb
baza-0.0.32 lib/baza/database_model_functionality.rb
baza-0.0.31 lib/baza/database_model_functionality.rb
baza-0.0.30 lib/baza/database_model_functionality.rb
baza-0.0.29 lib/baza/database_model_functionality.rb
baza-0.0.28 lib/baza/database_model_functionality.rb
baza-0.0.27 lib/baza/database_model_functionality.rb
baza-0.0.26 lib/baza/database_model_functionality.rb
baza-0.0.25 lib/baza/database_model_functionality.rb
baza-0.0.24 lib/baza/database_model_functionality.rb
baza-0.0.23 lib/baza/database_model_functionality.rb
baza-0.0.22 lib/baza/database_model_functionality.rb
baza-0.0.21 lib/baza/database_model_functionality.rb
baza-0.0.20 lib/baza/database_model_functionality.rb