Class: Bhf::PagesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Bhf::PagesController
- Defined in:
- app/controllers/bhf/pages_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/bhf/pages_controller.rb', line 4 def show = @config.content_for_page(@page) @pagination = Bhf::Pagination.new(2, 3) if request.xhr? params.each do |key, value| return render_platform(key) if value.is_a?(Hash) end end @platforms = .each_with_object([]) do |opts, obj| platform = Bhf::Platform.new(opts, @page) platform.paginated_objects = paginate_platform_objects(platform) obj << platform end end |