Sha256: 18d0ca34bda696cd06d67198ec7ae4d80d98a80a0f62255c6e864cc12834fb05
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 Bytes
Contents
require 'navi/navigable/instance_methods' module Navi module Navigable module Base def navigable(options={}) cattr_accessor :navigable_config self.navigable_config = options has_one Navi.navigator, :as => :navigable include Navi::Navigable::InstanceMethods before_destroy :prepare_standalone_navigator! end end end end ActiveRecord::Base.extend Navi::Navigable::Base
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
navi-0.2.1 | lib/navi/navigable/base.rb |
navi-0.2.0 | lib/navi/navigable/base.rb |
navi-0.1.4 | lib/navi/navigable/base.rb |
navi-0.1.3 | lib/navi/navigable/base.rb |