lib/simple_pages.rb in simple-pages-rails-0.0.1 vs lib/simple_pages.rb in simple-pages-rails-0.1.0

- old
+ new

@@ -1,22 +1,33 @@ -require 'rails-theme-helper/app_helpers' - require 'simple_pages/engine' -require 'simple_pages/page_author' -require 'simple_pages/page_layout_at' +require 'simple_pages/controllers/page_layout_at' +require 'simple_pages/models/page_attachment' +require 'simple_pages/models/page_author' +require 'simple_pages/models/page_locale' +require 'simple_pages/models/page_owner' module SimplePages - mattr_accessor :application_controller_modules - @@application_controller_modules = [] + mattr_accessor :controller_modules + @@controller_modules = [ + SimplePages::Controllers::PageLayoutAt + ] mattr_accessor :helper_modules - @@helper_modules = [ - RailsTheme::LayoutHelper, - RailsTheme::BootstrapHelper - ] + @@helper_modules = [] mattr_accessor :page_table_name @@page_table_name = 'simple_pages' mattr_accessor :page_modules - @@page_modules = [] + @@page_modules = [ + SimplePages::Models::PageOwner, + SimplePages::Models::PageLocale, + SimplePages::Models::PageAttachment + ] + + mattr_accessor :pages_per_page + @@pages_per_page = 30 + + def self.configure + yield self + end end