Sha256: da46aacede1ce5ca8c2055ba77b165b0abd1007714f757f28820c0086d0a12ad
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
module InkwellTimelines class Engine < Rails::Engine config.load_distance = 150 config.autoload_path = 'timeline/get/' config.timeline_blocks = [ { :id => 'timelines_block', :timelines => [ { :id => 'blogline', :name => 'Blog', :active => true, :data_get => ->(options = {}) { user = User.find options[:user_id] user.blogline options }, :transferred_params => [:user_id], :multi_selectors => [ { :id => 'category', :name => 'Category', :data_get => ->(options = {}) { Category.where(:owner_id => options[:user_id], :owner_type => 'u') } } ] }, { :id => 'favoriteline', :name => 'Favorite', :data_get => ->(options = {}) { user = User.find options[:user_id] user.favoriteline options }, :transferred_params => [:user_id] } ] } ] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inkwell_timelines-1.0.0 | test/dummy/config/initializers/inkwell_timelines.rb |