README.md in tramway-landing-3.3.0.6 vs README.md in tramway-landing-3.3.0.7
- old
+ new
@@ -43,12 +43,12 @@
#### 3. Add landing blocks to the initializer
*config/initializers/tramway.rb*
```ruby
-Tramway::Admin.set_available_models ::Tramway::Landing::Block, project: #{project_name_which_you_use_in_the_application}
-Tramway::Admin.navbar_structure ::Tramway::Landing::Block
+Tramway.set_available_models ::Tramway::Landing::Block, project: #{project_name_which_you_use_in_the_application}
+Tramway.navbar_structure ::Tramway::Landing::Block
```
#### 4. Add `PhotoVersions` to middleware (will be removed soon)
*lib/middleware/tramway/landing_middleware.rb*
@@ -101,11 +101,11 @@
end
private
def application
- @application = ::Tramway::Core.application_object
+ @application = ::Tramway.application_object
end
end
```
#### 10. Add new controller to the routes
@@ -238,17 +238,17 @@
#### 1. Add landing tools to the initializer
*config/initializers/tramway.rb*
```ruby
-Tramway::Admin.set_available_models(
+Tramway.set_available_models(
::Tramway::Landing::Block,
::Tramway::Landing::Tool,
project: #{project_name_which_you_use_in_the_application}
)
-Tramway::Admin.navbar_structure(
+Tramway.navbar_structure(
::Tramway::Landing::Block,
::Tramway::Landing::Tool
)
```
@@ -269,10 +269,10 @@
end
private
def application
- @application = ::Tramway::Core.application_object
+ @application = ::Tramway.application_object
end
end
```
And now all we need to integrate tool to your web page will be integrated automatically. **Enjoy!**