diff options
Diffstat (limited to 'app/models/sidebar_module.rb')
-rw-r--r-- | app/models/sidebar_module.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/sidebar_module.rb b/app/models/sidebar_module.rb new file mode 100644 index 0000000..1e9bde1 --- /dev/null +++ b/app/models/sidebar_module.rb @@ -0,0 +1,13 @@ +class SidebarModule + attr_reader :title, :body, :position + + def initialize(title, body, pos) + @title = title + @body = body + @position = pos + end + + def to_partial_path + "sidebar_modules/#{self.class.to_s.underscore}" + end +end |