Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8866233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:44:32+00:00 2026-06-14T16:44:32+00:00

In my config/initializers/ refinery folder, there are some config files structured as initializers ├──

  • 0

In my config/initializers/refinery folder, there are some config files structured as

initializers
 ├── backtrace_silencers.rb
 ├── inflections.rb
 ├── mime_types.rb 
 ├── refinery
 │   ├── authentication.rb
 │   ├── core.rb
 │   ├── i18n.rb
 │   ├── images.rb
 │   ├── page_images.rb
 │   ├── pages.rb
 │   └── resources.rb
 ├── secret_token.rb
 ├── session_store.rb
 └── wrap_parameters.rb

With refinery/ with rails console --sandbox, I get

  Refinery.included_modules
  #=> [] 

Why? When I press Tab after Refinery::P, it shows the following modules.

Refinery::Page                 Refinery::PagePart             Refinery::PaginationHelper     
Refinery::PageImages           Refinery::Pages                Refinery::Plugin               
Refinery::PageImagesGenerator  Refinery::PagesGenerator       Refinery::Plugins  

If it has ::, it must be somewhere and has to include it. Then why is include_modules working? Please correct me if I am wrong and show me the correct approach to display the modules or classes which are inside the modules. I referred http://www.ruby-doc.org/core-1.9.3/Module.html.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:44:33+00:00Added an answer on June 14, 2026 at 4:44 pm

    Those modules aren’t “included” in Refinery, which is why they are not listed in included_modules.

    “Including” has a specific meaning in Ruby — basically, it’s when a class or module “mixes in” another module — whereas something like Refinery::Page is namespacing. Check out the Pragmatic Programmer’s Guide, which explains it well.

    Try Refinery.constants to get what you are after.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's a config file config/initializers/inflections.rb that, as per this question lets you modify the
I see in the config/initializers/devise.rb, there is a configuration called config.stretches. # ==> Configuration
I have the file config/initializers/custom.rb In the file, there is only one line: `rake
I am using omniauth-identity and configure its fail on registration. My files: config/initializers/omniauth.rb OmniAuth.config.logger
I've added # config/initializers/will_paginate_array_fix.rb require 'will_paginate/array' but still do not seem to be getting
I have in the directory /config/initializers/constants_data.rb following line: ADM = User.find_by_name('admin').id This is working
I have the following directory structure: project/ .git/ ... app/ ... config/ initializers/ braintree.rb
My config.ru is as follows: use Rack::Static, :urls => [/images], :root => public run
I run several daemons in config/initializers/ when I start my rails app, but I
I have seen this in initializers in rails (config/initializers/foo.rb) module foo module bar def

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.