Class: Widgets::ResetPassword::Base
- Inherits:
-
ErpApp::Widgets::Base
- Object
- ErpApp::Widgets::Base
- Widgets::ResetPassword::Base
- Defined in:
- app/widgets/reset_password/base.rb
Class Method Summary collapse
Instance Method Summary collapse
- #index ⇒ Object
-
#locate ⇒ Object
should not be modified modify at your own risk.
Class Method Details
.base_layout ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'app/widgets/reset_password/base.rb', line 28 def base_layout begin file = File.join(File.dirname(__FILE__),"/views/layouts/base.html.erb") IO.read(file) rescue return nil end end |
.title ⇒ Object
20 21 22 |
# File 'app/widgets/reset_password/base.rb', line 20 def title "Reset Password" end |
.widget_name ⇒ Object
24 25 26 |
# File 'app/widgets/reset_password/base.rb', line 24 def File.basename(File.dirname(__FILE__)) end |
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/widgets/reset_password/base.rb', line 5 def index @website = Website.find_by_host(request.host_with_port) @login_url = params[:login_url] @domain = @website.configurations.first.get_item(ConfigurationItemType.find_by_internal_identifier('primary_host'))..first.value render end |
#locate ⇒ Object
should not be modified modify at your own risk
15 16 17 |
# File 'app/widgets/reset_password/base.rb', line 15 def locate File.dirname(__FILE__) end |