Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> ruby >> ruby-discriminator
nabia  ] [  aramo  ]
[ 源代码: ruby-discriminator  ]

软件包: ruby-discriminator (0.1.1-2)

Gem making smart ActiveRecords by loading subclasses

Discriminator is a gem which makes ActiveRecord smart about loading subclasses from the database.

Ideally, we'd like to load up these Active Records from the databases, with their subclasses already applied with discriminator, otherwise it's become cumbersome to determine each type in the database.

This can be exceptionally helpful for a single table inheritance situation, or something like events where there may be a large number of subclasses which could have very different behavior per subclass.

其他与 ruby-discriminator 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: ruby
    Interpreter of object-oriented scripting language Ruby (default version)
    或者 ruby-interpreter
    软件包暂时不可用
  • dep: ruby-activerecord (>= 2:4.0.2)
    object-relational mapper framework (part of Rails)

下载 ruby-discriminator

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 4.7 kB24 kB [文件列表]