Module: Devise::Controllers::ScopedViews::ClassMethods

Defined in:
lib/devise/controllers/scoped_views.rb

Instance Method Summary collapse

Instance Method Details

#scoped_views=(value) ⇒ Object



11
12
13
# File 'lib/devise/controllers/scoped_views.rb', line 11

def scoped_views=(value)
  @scoped_views = value
end

#scoped_views?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/devise/controllers/scoped_views.rb', line 7

def scoped_views?
  defined?(@scoped_views) ? @scoped_views : Devise.scoped_views
end