Sha256: 6adef2bcf174081daa719c3ae1c21197549da45e80768eaf123400537d113778

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

require 'active_support/dependencies'

# Require our engine
require 'activa/engine'
require 'activa/default_permissions'
require 'stringex'

# http://coding.smashingmagazine.com/2011/06/23/a-guide-to-starting-your-own-rails-engine-gem/
module Activa
  # Our host application root path
  # We set this when the engine is initialized
  mattr_accessor :app_root, :user_class

  # Yield self on setup for nice config blocks
  def self.setup
    yield self
  end

  class << self
    def user_class
      if @@user_class.is_a?(String)
        @@user_class.constantize
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activa-0.0.6 lib/activa.rb
activa-0.0.5 lib/activa.rb
activa-0.0.4 lib/activa.rb
activa-0.0.3 lib/activa.rb
activa-0.0.2 lib/activa.rb