Sha256: a5558e597b0ee7f0ac7d56abcc33b9d3fdba19fa4aa85f9ebb9ec112680608f8
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
module ActionDispatch::Routing class Mapper def devise_ios_rails_for(*resources) options = resources.extract_options! options[:controllers] ||= {} options[:controllers] = default_controllers.merge(options[:controllers]) devise_for(*[resources, options].flatten) end private def default_controllers { registrations: 'devise_ios_rails/registrations', passwords: 'devise_ios_rails/passwords', } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
devise-ios-rails-1.0.2 | lib/devise-ios-rails/rails/routes.rb |
devise-ios-rails-1.0.1 | lib/devise-ios-rails/rails/routes.rb |
devise-ios-rails-1.0.0 | lib/devise-ios-rails/rails/routes.rb |