Sha256: 8b96298e8b8065150a25d51606144a663b23e769ed01a73b68a226c79d874551

Contents?: true

Size: 379 Bytes

Versions: 11

Compression:

Stored size: 379 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
      end
    end
  end
end

ActiveRecord::Base.extend Navi::Navigable::Base

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
navi-0.0.17 lib/navi/navigable/base.rb
navi-0.0.16 lib/navi/navigable/base.rb
navi-0.0.15 lib/navi/navigable/base.rb
navi-0.0.14 lib/navi/navigable/base.rb
navi-0.0.13 lib/navi/navigable/base.rb
navi-0.0.12 lib/navi/navigable/base.rb
navi-0.0.11 lib/navi/navigable/base.rb
navi-0.0.10 lib/navi/navigable/base.rb
navi-0.0.9 lib/navi/navigable/base.rb
navi-0.0.6 lib/navi/navigable/base.rb
navi-0.0.2 lib/navi/navigable/base.rb