Sha256: 03e156f3fc6badb5e7fcad095af5a952f6578f05b23664a5d2484a50a8b84f25
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
require 'acts_in_relation/version' require 'acts_in_relation/railtie' if defined?(Rails) module ActsInRelation class MissingRoleError < StandardError; end class UnknownRoleError < StandardError def initialize(role) @role = role end def to_s ":role should be one of :source, :target, :action or :self (#{@role} is passed)" end end autoload :Core, 'acts_in_relation/core' module Roles autoload :Base, 'acts_in_relation/roles/base' autoload :Source, 'acts_in_relation/roles/source' autoload :Target, 'acts_in_relation/roles/target' autoload :Action, 'acts_in_relation/roles/action' end module Supports autoload :Verb, 'acts_in_relation/supports/verb' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acts_in_relation-0.2.2 | lib/acts_in_relation.rb |
acts_in_relation-0.2.1 | lib/acts_in_relation.rb |
acts_in_relation-0.2.0 | lib/acts_in_relation.rb |