Sha256: 5d87071ff7e1eb0a0df1792b123e6c756386634d2affc86b6ce8ee37a234c6c9

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

ActiveRecord::Base.send(:include, Sorcery::Model) if defined?(ActiveRecord)
if defined?(Sinatra::Base)
  Sinatra::Base.send(:include, Sorcery::Controller::Adapters::Sinatra)
  Sinatra::Base.send(:include, Sorcery::Controller)
  # Sorcery::Controller::Config.class_eval do
  #   class << self
  #     def submodules=(mods)
  #       @submodules = mods
  #       Sinatra::Base.send(:include, Sorcery::Controller::Adapters::Sinatra)
  #       Sinatra::Base.send(:include, Sorcery::Controller)
  #     end
  #   end
  # end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sorcery-0.3.1 lib/sorcery/sinatra.rb
sorcery-0.3.0 lib/sorcery/sinatra.rb